mailr15998 - in /branches/uf_redesign/gui: uf_objects.py wizard.py wizard_elements.py


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

Header


Content

Posted by edward on May 05, 2012 - 21:02:
Author: bugman
Date: Sat May  5 21:02:21 2012
New Revision: 15998

URL: http://svn.gna.org/viewcvs/relax?rev=15998&view=rev
Log:
The wiz_read_only user function flag is now propagated into the String_list 
GUI elements.


Modified:
    branches/uf_redesign/gui/uf_objects.py
    branches/uf_redesign/gui/wizard.py
    branches/uf_redesign/gui/wizard_elements.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=15998&r1=15997&r2=15998&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Sat May  5 21:02:21 2012
@@ -209,7 +209,7 @@
 
             # String list.
             elif arg['py_type'] == 'str_list':
-                self.element_string_list(key=arg['name'], 
element_type=arg['wiz_element_type'], sizer=sizer, desc=desc, 
combo_choices=arg['wiz_combo_choices'], combo_data=arg['wiz_combo_data'], 
combo_default=arg['wiz_combo_default'], 
combo_list_size=arg['wiz_combo_list_size'], tooltip=arg['desc'])
+                self.element_string_list(key=arg['name'], 
element_type=arg['wiz_element_type'], sizer=sizer, desc=desc, 
combo_choices=arg['wiz_combo_choices'], combo_data=arg['wiz_combo_data'], 
combo_default=arg['wiz_combo_default'], 
combo_list_size=arg['wiz_combo_list_size'], tooltip=arg['desc'], 
read_only=arg['wiz_read_only'])
 
             # String list of lists.
             elif arg['py_type'] == 'str_list_of_lists':

Modified: branches/uf_redesign/gui/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard.py?rev=15998&r1=15997&r2=15998&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard.py (original)
+++ branches/uf_redesign/gui/wizard.py Sat May  5 21:02:21 2012
@@ -747,7 +747,7 @@
         self._elements[key] = element
 
 
-    def element_string_list(self, key=None, element_type='default', 
sizer=None, desc=None, combo_choices=None, combo_data=None, 
combo_default=None, combo_list_size=None, tooltip=None, divider=None, 
padding=0, spacer=None):
+    def element_string_list(self, key=None, element_type='default', 
sizer=None, desc=None, combo_choices=None, combo_data=None, 
combo_default=None, combo_list_size=None, tooltip=None, divider=None, 
padding=0, spacer=None, read_only=False):
         """Set up the element and store it.
 
         @keyword key:               The dictionary key to store the element 
with.
@@ -774,10 +774,12 @@
         @type padding:              int
         @keyword spacer:            The amount of spacing to add below the 
field in pixels.  If None, a stretchable spacer will be used.
         @type spacer:               None or int
+        @keyword read_only:         A flag which if True means that the text 
of the element cannot be edited.
+        @type read_only:            bool
         """
 
         # Create the element.
-        element = String_list(name=key, element_type=element_type, 
parent=self, sizer=sizer, desc=desc, combo_choices=combo_choices, 
combo_data=combo_data, combo_default=combo_default, 
combo_list_size=combo_list_size, tooltip=tooltip, divider=divider, 
padding=padding, spacer=spacer)
+        element = String_list(name=key, element_type=element_type, 
parent=self, sizer=sizer, desc=desc, combo_choices=combo_choices, 
combo_data=combo_data, combo_default=combo_default, 
combo_list_size=combo_list_size, tooltip=tooltip, divider=divider, 
padding=padding, spacer=spacer, read_only=read_only)
 
         # Store it.
         self._elements[key] = element

Modified: branches/uf_redesign/gui/wizard_elements.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=15998&r1=15997&r2=15998&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Sat May  5 21:02:21 2012
@@ -255,7 +255,7 @@
 class List:
     """Base wizard GUI element for the input of all types of lists."""
 
-    def __init__(self, name=None, parent=None, element_type='default', 
sizer=None, desc=None, combo_choices=None, combo_data=None, 
combo_default=None, combo_list_size=None, tooltip=None, divider=None, 
padding=0, spacer=None):
+    def __init__(self, name=None, parent=None, element_type='default', 
sizer=None, desc=None, combo_choices=None, combo_data=None, 
combo_default=None, combo_list_size=None, tooltip=None, divider=None, 
padding=0, spacer=None, read_only=False):
         """Set up the element.
 
         @keyword name:              The name of the element to use in 
titles, etc.
@@ -284,6 +284,8 @@
         @type padding:              int
         @keyword spacer:            The amount of spacing to add below the 
field in pixels.  If None, a stretchable spacer will be used.
         @type spacer:               None or int
+        @keyword read_only:         A flag which if True means that the text 
of the element cannot be edited.
+        @type read_only:            bool
         """
 
         # Store the args.




Related Messages


Powered by MHonArc, Updated Sat May 05 21:20:02 2012