This commit is contained in:
Zach Tibbitts 2007-03-01 21:28:24 +00:00
parent 7d22ef4f28
commit 888afe8ccd
1 changed files with 10 additions and 1 deletions

View File

@ -37,7 +37,16 @@ class StupidTray:
def set_tooltip(self, value):
pass
# Show a popup message dialog
def show_popup_warning(window, message):
warner = gtk.MessageDialog(parent = window,
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
buttons= gtk.BUTTONS_OK,
message_format=message,
type = gtk.MESSAGE_WARNING)
warner.run()
warner.destroy()
## Browse for .torrent files
def show_file_open_dialog(parent=None):
chooser = gtk.FileChooserDialog(_("Choose a .torrent file"), parent, gtk.FILE_CHOOSER_ACTION_OPEN,