def onClose(self, evt): """ Close the batch processor """ scripting.unregisterDialog("BatchProcessor") scripting.visualizer.enable(1) self.Destroy()
def cancel(self): """ Set the status so that the processing will cancel and close the window """ self.status = wx.ID_CANCEL scripting.unregisterDialog(self.dialogName) self.Close()
def process(self): """ Set the status so that the processing will continue and close the window """ self.status = wx.ID_OK scripting.unregisterDialog(self.dialogName) self.Close()