def OnCreateButton(self, event): """ open the create flag dialog box """ dlg = newFlagDialog(self, self.navigator, "") dlg.ShowModal() # refresh the flags list self.initFlagsList()
def OnModifyButton(self, event): """ modify the flag selected """ # check if an item is selected if (self.flagIndice != -1): # open the modify flag dialog box dlg = newFlagDialog(self, self.navigator, self.flagsList[self.flagIndice]) dlg.ShowModal() # refresh the flags list self.initFlagsList()