def OnComponentSortOrderAdd(self, event):
    item = wx.GetTextFromUser('Characters other than A-Z will be ignored.', 'Add sort order item')
    item = re.sub('[^A-Z]', '', item.upper())
    if (item == ''):
        return
    found = self.componentSortOrderBox.FindString(item)
    if (found != wx.NOT_FOUND):
        self.componentSortOrderBox.SetSelection(found)
        return
    self.componentSortOrderBox.Append(item)
    self.componentSortOrderBox.SetSelection((self.componentSortOrderBox.Count - 1))
def OnComponentSortOrderAdd(self, event):
    item = wx.GetTextFromUser('Characters other than A-Z will be ignored.', 'Add sort order item')
    item = re.sub('[^A-Z]', , item.upper())
    if (item == ):
        return
    found = self.componentSortOrderBox.FindString(item)
    if (found != wx.NOT_FOUND):
        self.componentSortOrderBox.SetSelection(found)
        return
    self.componentSortOrderBox.Append(item)
    self.componentSortOrderBox.SetSelection((self.componentSortOrderBox.Count - 1))