[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-designer/src/base/tools PropertyEditor.py
From: |
Jason Cater |
Subject: |
gnue-designer/src/base/tools PropertyEditor.py |
Date: |
Tue, 15 Jul 2003 17:37:59 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-designer
Branch:
Changes by: Jason Cater <address@hidden> 03/07/15 17:37:59
Modified files:
src/base/tools : PropertyEditor.py
Log message:
property editor fixes for when an attribute's property is None
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-designer/src/base/tools/PropertyEditor.py.diff?tr1=1.48&tr2=1.49&r1=text&r2=text
Patches:
Index: gnue-designer/src/base/tools/PropertyEditor.py
diff -c gnue-designer/src/base/tools/PropertyEditor.py:1.48
gnue-designer/src/base/tools/PropertyEditor.py:1.49
*** gnue-designer/src/base/tools/PropertyEditor.py:1.48 Tue Jul 15 17:22:43 2003
--- gnue-designer/src/base/tools/PropertyEditor.py Tue Jul 15 17:37:59 2003
***************
*** 242,247 ****
--- 242,249 ----
# Set the initial value of the cells to the current property values
if hasattr(object, xkey):
+ print object, xkey, object.__dict__[xkey]
+ print field
field.SetValue(object.__dict__[xkey])
self.fields.append(field)
***************
*** 396,401 ****
--- 398,405 ----
def SetValue(self, value):
if value in self.list:
self.SetSelection(self.list.index(value))
+ elif value is None:
+ wxComboBox.SetValue(self, "")
else:
wxComboBox.SetValue(self, value)
***************
*** 469,471 ****
--- 473,479 ----
wxTextCtrl.__init__(self, parent, -1, style=wxTE_PROCESS_ENTER)
self.attributes = attributes
+ def SetValue(self, value):
+ if value == None:
+ value = ""
+ wxTextCtrl.SetValue(self, value)