mailr13022 - in /1.3/gui: relax_gui.py settings.py


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

Header


Content

Posted by edward on June 14, 2011 - 20:35:
Author: bugman
Date: Tue Jun 14 20:35:01 2011
New Revision: 13022

URL: http://svn.gna.org/viewcvs/relax?rev=13022&view=rev
Log:
The settings windows are now derived from wx.Dialog rather than wx.Frame.

This is for better operation under MS Windows.


Modified:
    1.3/gui/relax_gui.py
    1.3/gui/settings.py

Modified: 1.3/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=13022&r1=13021&r2=13022&view=diff
==============================================================================
--- 1.3/gui/relax_gui.py (original)
+++ 1.3/gui/relax_gui.py Tue Jun 14 20:35:01 2011
@@ -484,7 +484,7 @@
         """
 
         # Build the window.
-        win = Free_file_format(self)
+        win = Free_file_format()
 
         # Show the window.
         win.Show()
@@ -498,7 +498,7 @@
         """
 
         # Build the window.
-        win = Global_params(self)
+        win = Global_params()
 
         # Show the window.
         win.Show()

Modified: 1.3/gui/settings.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/settings.py?rev=13022&r1=13021&r2=13022&view=diff
==============================================================================
--- 1.3/gui/settings.py (original)
+++ 1.3/gui/settings.py Tue Jun 14 20:35:01 2011
@@ -62,7 +62,7 @@
 
 
 
-class Base_window(wx.Frame):
+class Base_window(wx.Dialog):
     """Base class for the settings windows."""
 
     # The window size.
@@ -75,7 +75,7 @@
         """Set up the window."""
 
         # Execute the base __init__() method.
-        super(Base_window, self).__init__(parent=parent, id=id, title=title, 
style=style)
+        wx.Dialog.__init__(self, parent, id=id, title=title, style=style)
 
         # The main sizer.
         self.main_sizer = self.build_frame()




Related Messages


Powered by MHonArc, Updated Tue Jun 14 21:20:03 2011