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) |
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) |