def OnSize(self, event):
    tmp = self.componentSortOrderBox.GetStrings()
    self.componentSortOrderBox.SetItems([])
    self.Layout()
    self.componentSortOrderBox.SetItems(tmp)
def OnSize(self, event):
    tmp = self.componentSortOrderBox.GetStrings()
    self.componentSortOrderBox.SetItems([])
    self.Layout()
    self.componentSortOrderBox.SetItems(tmp)