コード例 #1
0
    def OnCreateButton(self, event):
        """ open the create flag dialog box """

        dlg = newFlagDialog(self, self.navigator, "")
        dlg.ShowModal()
        # refresh the flags list
        self.initFlagsList()
コード例 #2
0
    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()