コード例 #1
0
ファイル: __init__.py プロジェクト: xguse/outspline
    def snooze(self, event):
        if core_api.block_databases():
            organism_alarms_api.snooze_alarms({self.filename: {self.id_:
                    [self.alarmid, ]}}, stime=self.awindow.get_snooze_time())
            # Let the alarm off event close the alarm

            core_api.release_databases()
コード例 #2
0
ファイル: __init__.py プロジェクト: kynikos/outspline
    def snooze(self, event):
        if core_api.block_databases():
            organism_alarms_api.snooze_alarms({self.filename: {self.id_:
                    [self.alarmid, ]}}, stime=self.awindow.get_snooze_time())
            # Let the alarm off event close the alarm

            core_api.release_databases()
コード例 #3
0
ファイル: __init__.py プロジェクト: xguse/outspline
    def snooze_all(self, event):
        if core_api.block_databases():
            organism_alarms_api.snooze_alarms(
                                        self._get_shown_alarms_dictionary(),
                                        stime=self.get_snooze_time())
            # Let the alarm off event close the alarms

            core_api.release_databases()
コード例 #4
0
ファイル: __init__.py プロジェクト: kynikos/outspline
    def snooze_all(self, event):
        if core_api.block_databases():
            organism_alarms_api.snooze_alarms(
                                        self._get_shown_alarms_dictionary(),
                                        stime=self.get_snooze_time())
            # Let the alarm off event close the alarms

            core_api.release_databases()