mailr11752 - /branches/bieri_gui/gui_bieri/user_functions/base.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 09, 2010 - 07:43:
Author: bugman
Date: Thu Dec  9 07:43:47 2010
New Revision: 11752

URL: http://svn.gna.org/viewcvs/relax?rev=11752&view=rev
Log:
Fix for the user function base class UF_window class - it wasn't closing 
properly.

This was identified by Michael at 
https://mail.gna.org/public/relax-devel/2010-12/msg00020.html.

The wx.Frame object was being used when it should have been wx.Dialog.


Modified:
    branches/bieri_gui/gui_bieri/user_functions/base.py

Modified: branches/bieri_gui/gui_bieri/user_functions/base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/base.py?rev=11752&r1=11751&r2=11752&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/user_functions/base.py (original)
+++ branches/bieri_gui/gui_bieri/user_functions/base.py Thu Dec  9 07:43:47 
2010
@@ -49,7 +49,7 @@
 
 
 
-class UF_window(wx.Frame):
+class UF_window(wx.Dialog):
     """User function window GUI element base class."""
 
     # Some class variables.
@@ -67,7 +67,7 @@
         self.interpreter = interpreter
 
         # Execute the base class method.
-        wx.Frame.__init__(self, None, id=-1, title=self.title, style=style)
+        wx.Dialog.__init__(self, None, id=-1, title=self.title, style=style)
 
         # Set up the frame.
         sizer = self.setup_frame()




Related Messages


Powered by MHonArc, Updated Fri Dec 10 15:20:02 2010