This commit is contained in:
parent
7d22ef4f28
commit
888afe8ccd
|
@ -37,6 +37,15 @@ 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):
|
||||
|
|
Loading…
Reference in New Issue