mailr13084 - /branches/gui_testing/gui/user_functions/value.py


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

Header


Content

Posted by edward on June 17, 2011 - 10:49:
Author: bugman
Date: Fri Jun 17 10:49:39 2011
New Revision: 13084

URL: http://svn.gna.org/viewcvs/relax?rev=13084&view=rev
Log:
The value.set() GUI user function now uses the new wizard.


Modified:
    branches/gui_testing/gui/user_functions/value.py

Modified: branches/gui_testing/gui/user_functions/value.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/value.py?rev=13084&r1=13083&r2=13084&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/value.py (original)
+++ branches/gui_testing/gui/user_functions/value.py Fri Jun 17 10:49:39 2011
@@ -31,7 +31,7 @@
 import specific_fns
 
 # GUI module imports.
-from base import UF_base
+from base import UF_base, UF_panel
 from gui.misc import gui_to_str, str_to_gui
 from gui.paths import WIZARD_IMAGE_PATH
 from gui.wizard import Wiz_window
@@ -48,20 +48,17 @@
         @type event:    wx event
         """
 
-        # The dialog.
-        window = Set_window(self.gui, self.interpreter)
-        window.ShowModal()
-        window.Destroy()
+        # Execute the wizard.
+        wizard = Wiz_window(size_x=800, size_y=600, title='Set parameter 
values')
+        wizard.add_page(Set_panel(self))
+        wizard.run()
 
 
 
-class Set_window(Wiz_window):
+class Set_panel(UF_panel):
     """The user function window."""
 
     # Some class variables.
-    size_x = 800
-    size_y = 600
-    frame_title = 'Set parameter values'
     image_path = WIZARD_IMAGE_PATH + 'value' + sep + 'value.png'
     main_text = 'This dialog allows you to set spin specific data values.'
     title = 'Value setting'




Related Messages


Powered by MHonArc, Updated Fri Jun 17 11:00:02 2011