Beispiel #1
0
    def close(self):
        # The dialog may haven't even been created
        if self.dialog:
            self.timer.Stop()
            self.dialog.Destroy()

            # This is needed in case the database (or the whole application) is
            # closed before any button has been clicked: in that case the
            # activation algorithm in organism_alarms must be unlocked in this
            # way, or its thread will never complete, thus hanging the closure
            # of the application
            organism_alarms_api.activate_old_alarms(self.filename, None)
Beispiel #2
0
    def close(self):
        # The dialog may haven't even been created
        if self.dialog:
            self.timer.Stop()
            self.dialog.Destroy()

            # This is needed in case the database (or the whole application) is
            # closed before any button has been clicked: in that case the
            # activation algorithm in organism_alarms must be unlocked in this
            # way, or its thread will never complete, thus hanging the closure
            # of the application
            organism_alarms_api.activate_old_alarms(self.filename, None)
Beispiel #3
0
 def _activate_unique_alarms(self, event):
     # The databases are already locked in organism_timer
     self._pre_activate_alarms()
     organism_alarms_api.activate_old_alarms(self.filename, True)
Beispiel #4
0
 def _activate_unique_alarms(self, event):
     # The databases are already locked in organism_timer
     self._pre_activate_alarms()
     organism_alarms_api.activate_old_alarms(self.filename, True)