mailr15994 - /branches/uf_redesign/user_functions/objects.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 - 20:41:
Author: bugman
Date: Sat May  5 20:41:48 2012
New Revision: 15994

URL: http://svn.gna.org/viewcvs/relax?rev=15994&view=rev
Log:
The add_keyarg() wiz_element_type arg default is now 'default' to be able to 
handle all element types.

The previous default of 'text' for a TextCtrl was causing failures with 
certain wizard GUI elements.


Modified:
    branches/uf_redesign/user_functions/objects.py

Modified: branches/uf_redesign/user_functions/objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/objects.py?rev=15994&r1=15993&r2=15994&view=diff
==============================================================================
--- branches/uf_redesign/user_functions/objects.py (original)
+++ branches/uf_redesign/user_functions/objects.py Sat May  5 20:41:48 2012
@@ -163,7 +163,7 @@
         self.__dict__[name] = value
 
 
-    def add_keyarg(self, name=None, default=None, py_type=None, 
arg_type=None, size=None, dim=None, desc_short=None, desc=None, 
list_titles=None, wiz_element_type='text', wiz_combo_choices=[], 
wiz_combo_data=None, wiz_combo_default=None, wiz_combo_iter=None, 
wiz_combo_list_size=None, wiz_read_only=False, can_be_none=False, 
can_be_empty=False, none_elements=False, list_of_lists=False):
+    def add_keyarg(self, name=None, default=None, py_type=None, 
arg_type=None, size=None, dim=None, desc_short=None, desc=None, 
list_titles=None, wiz_element_type='default', wiz_combo_choices=[], 
wiz_combo_data=None, wiz_combo_default=None, wiz_combo_iter=None, 
wiz_combo_list_size=None, wiz_read_only=False, can_be_none=False, 
can_be_empty=False, none_elements=False, list_of_lists=False):
         """Wrapper method for adding keyword argument information to the 
container.
 
         @keyword name:                  The name of the argument.
@@ -187,7 +187,7 @@
         @type desc:                     str
         @keyword list_titles:           The titles of each of the elements 
of the fixed width second dimension.  This only applies to list of lists.
         @type list_titles:              list of str
-        @keyword wiz_element_type:      The type of GUI element to create.  
If set to 'text', a wx.TextCtrl element will be used.  If set to 'combo', a 
wx.ComboBox element will be used.
+        @keyword wiz_element_type:      The type of GUI element to create.  
If left to 'default', then the currently set default element will be used.  
If set to 'text', a wx.TextCtrl element will be used.  If set to 'combo', a 
wx.ComboBox element will be used.
         @type wiz_element_type:         str
         @keyword wiz_combo_choices:     The list of choices to present to 
the user.  This is only used if the element_type is set to 'combo'.
         @type wiz_combo_choices:        list of str




Related Messages


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