242 |
|
|
243 |
# Set the initial value of the cells to the current property values |
# Set the initial value of the cells to the current property values |
244 |
if hasattr(object, xkey): |
if hasattr(object, xkey): |
245 |
|
print object, xkey, object.__dict__[xkey] |
246 |
|
print field |
247 |
field.SetValue(object.__dict__[xkey]) |
field.SetValue(object.__dict__[xkey]) |
248 |
|
|
249 |
self.fields.append(field) |
self.fields.append(field) |
398 |
def SetValue(self, value): |
def SetValue(self, value): |
399 |
if value in self.list: |
if value in self.list: |
400 |
self.SetSelection(self.list.index(value)) |
self.SetSelection(self.list.index(value)) |
401 |
|
elif value is None: |
402 |
|
wxComboBox.SetValue(self, "") |
403 |
else: |
else: |
404 |
wxComboBox.SetValue(self, value) |
wxComboBox.SetValue(self, value) |
405 |
|
|
473 |
wxTextCtrl.__init__(self, parent, -1, style=wxTE_PROCESS_ENTER) |
wxTextCtrl.__init__(self, parent, -1, style=wxTE_PROCESS_ENTER) |
474 |
self.attributes = attributes |
self.attributes = attributes |
475 |
|
|
476 |
|
def SetValue(self, value): |
477 |
|
if value == None: |
478 |
|
value = "" |
479 |
|
wxTextCtrl.SetValue(self, value) |