/[gnue]/gnue-designer/src/base/tools/PropertyEditor.py
ViewVC logotype

Diff of /gnue-designer/src/base/tools/PropertyEditor.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by jcater, Tue Jul 15 21:22:43 2003 UTC revision 1.49 by jcater, Tue Jul 15 21:37:59 2003 UTC
# Line 242  class InspectorPanel(wxScrolledWindow): Line 242  class InspectorPanel(wxScrolledWindow):
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)
# Line 396  class LinkedTextEditor(wxComboBox): Line 398  class LinkedTextEditor(wxComboBox):
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    
# Line 469  class TextEditor(wxTextCtrl): Line 473  class TextEditor(wxTextCtrl):
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)

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26