mailr16274 - /branches/uf_redesign/gui/uf_objects.py


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

Header


Content

Posted by edward on May 13, 2012 - 12:43:
Author: bugman
Date: Sun May 13 12:43:20 2012
New Revision: 16274

URL: http://svn.gna.org/viewcvs/relax?rev=16274&view=rev
Log:
Shifted the user function page creation into the Uf_object.create_page() 
method.

This will be useful for the creation of the special wizards which are 
composed of many user function
pages strung together.  In this case, the __call__() method which creates and 
packs the page into a
Wiz_window instance can be bypassed.


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16274&r1=16273&r2=16274&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Sun May 13 12:43:20 2012
@@ -58,7 +58,7 @@
         wizard = Wiz_window(parent=self._parent, size_x=self._size[0], 
size_y=self._size[1], title=self._title)
 
         # Create the page.
-        page = Uf_page(self._name, parent=wizard, 
height_desc=self._height_desc, sync=self._sync)
+        page = self.create_page()
 
         # Add the page to the wizard.
         wizard.add_page(page, apply_button=self._apply_button)
@@ -96,6 +96,17 @@
         self._sync = sync
 
 
+    def create_page(self):
+        """Create the user function page object.
+
+        @return:        The user function page object.
+        @rtype:         Uf_page instance
+        """
+
+        # Initialise and return the page.
+        return Uf_page(self._name, parent=wizard, 
height_desc=self._height_desc, sync=self._sync)
+
+
 
 class Uf_page(Wiz_page):
     """User function specific pages for the wizards."""




Related Messages


Powered by MHonArc, Updated Sun May 13 13:00:02 2012