diff options
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -679,7 +679,7 @@ class MessageWindow: def getrc (self): return self.rc - def __init__ (self, title, text, type="ok", default=None, custom_buttons=None, custom_icon=None, run = True, destroyAfterRun = True): + def __init__ (self, title, text, type="ok", default=None, custom_buttons=None, custom_icon=None, run = True, parent = None, destroyAfterRun = True): self.debugRid = None self.title = title if flags.autostep: @@ -716,6 +716,9 @@ class MessageWindow: self.dialog = gtk.MessageDialog(mainWindow, 0, style, buttons, text) + if parent: + self.dialog.set_transient_for(parent) + if docustom: rid=0 for button in custom_buttons: @@ -868,7 +871,7 @@ class InstallInterface: parent = None rc = MessageWindow (title, text, type, default, - custom_buttons, custom_icon, parent).getrc() + custom_buttons, custom_icon, run=True, parent=parent).getrc() return rc def entryWindow(self, title, text, type="ok", entrylength = None): |