$ 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.
$ bzr diff pyWx/gui. py'
result[ 'cancel' ] = dlg.ShowModal() == wx.ID_CANCEL
=== modified file 'phatch/
--- 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 @@
def show_message( self,message, title=' ',style= wx.OK | wx.ICON_ EXCLAMATION) : g(self, g(parent,
message,
'%(name) s '%ct.INFO +title,
style,
- dlg = wx.MessageDialo
+ if self.IsShown():
+ parent = self
+ else:
+ parent = None
+ dlg = wx.MessageDialo
$ bzr commit -m "fix empty frame for droplet" sync/python/ phatch/ trunk/
Committing to: /home/stani/
modified phatch/pyWx/gui.py
Committed revision 712.