/[thuban]/trunk/thuban/Thuban/UI/classifier.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/classifier.py

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

revision 610 by jonathan, Fri Apr 4 13:56:59 2003 UTC revision 611 by jonathan, Fri Apr 4 16:34:46 2003 UTC
# Line 780  class Classifier(NonModalDialog): Line 780  class Classifier(NonModalDialog):
780          # calling __SelectField after creating the classGrid fills in the          # calling __SelectField after creating the classGrid fills in the
781          # grid with the correct information          # grid with the correct information
782          #print "2------------------"          #print "2------------------"
783            self.fields.SetSelection(self.__cur_field)
784          self.__SelectField(self.__cur_field, group = group)          self.__SelectField(self.__cur_field, group = group)
785    
786          #self.classGrid.SelectGroup(group)          #self.classGrid.SelectGroup(group)
# Line 908  class Classifier(NonModalDialog): Line 909  class Classifier(NonModalDialog):
909          self.fieldTypeText.SetLabel(_("Field Type: %s") % text)          self.fieldTypeText.SetLabel(_("Field Type: %s") % text)
910    
911      def __SelectField(self, newIndex, oldIndex = -1, group = None):      def __SelectField(self, newIndex, oldIndex = -1, group = None):
912            """This method assumes that the current selection for the
913            combo has already been set by a call to SetSelection().
914            """
915    
916          #print "3------------------"          #print "3------------------"
917    
918          assert oldIndex >= -1          assert oldIndex >= -1
919    
         self.fields.SetSelection(newIndex)  
   
920          if oldIndex != -1:          if oldIndex != -1:
921              clazz = self.__BuildClassification(oldIndex)              clazz = self.__BuildClassification(oldIndex)
922              self.fields.SetClientData(oldIndex, clazz)              self.fields.SetClientData(oldIndex, clazz)

Legend:
Removed from v.610  
changed lines
  Added in v.611

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26