Comment 1 for bug 385058

Revision history for this message
Stani (stani) wrote :

$ bzr diff
=== modified file 'phatch/pyWx/gui.py'
--- phatch/pyWx/gui.py 2009-06-09 04:36:42 +0000
+++ phatch/pyWx/gui.py 2009-06-09 15:44:50 +0000
@@ -124,7 +124,11 @@
         result['cancel'] = dlg.ShowModal() == wx.ID_CANCEL

     def show_message(self,message,title='',style=wx.OK | wx.ICON_EXCLAMATION):
- dlg = wx.MessageDialog(self,
+ if self.IsShown():
+ parent = self
+ else:
+ parent = None
+ dlg = wx.MessageDialog(parent,
                 message,
                 '%(name)s '%ct.INFO +title,
                 style,

$ bzr commit -m "fix empty frame for droplet"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/pyWx/gui.py
Committed revision 712.