def execute_cancel_record(context): def __do_cancel(context): record = context['selected'] scheduler = WyRecord().scheduler try: rule_id = record.periodic_rule.id scheduler.RemovePeriodicRecording(rule_id, delete_records=False) ConfirmWindow(_('Are you sure ?'), confirm_action=__do_cancel, confirm_args=(context,)).show()
def event_stop(self, event): from pygui.window import ConfirmWindow ConfirmWindow(_('Remove item(s) from playlist?'), confirm_action=self._do_delete).show() return True
self.nodes: {0: <unpyclib.structure.node instance at 0xb774744c>} nname: 0 n 0(None)[play = self.player play.choices.edited = False play.selected.vfs_delete() del play.choices[play.selected_pos] return True ]: i: o: self.nodes: {0: <unpyclib.structure.node instance at 0xb77474ac>} nname: 0 n 0(None)[from pygui.window import ConfirmWindow ConfirmWindow(_('Remove item(s) from playlist?'), confirm_action=self._do_delete).show() return True ]: i: o: self.nodes: {0: <unpyclib.structure.node instance at 0xb774768c>} nname: 6 n 6(None)[def event_right(self, event): self.player.choices.edited = True return True def event_left(self, event): if self.player.choices.edited: self.player.choices.edited = False else:
def stopRecording(self): self.confirmWindow = ConfirmWindow( self, "Are you sure you want to stop the study? All data will be lost.", None, None, self.onConfirmStop) self.confirmWindow.show()
def finishTaskButton(self, e): self.confirmWindow = ConfirmWindow( self, "Confirm you want to proceed to next task.", self.pos(), (self.windowW - 15, self.windowH - 0), self.onConfirmNextTask) self.confirmWindow.show()
from ecell.FullID import * from ecell.ecssupport import * from ConfirmWindow import * ConfirmWindow("Loading model, creating loggers", 'Test') loadModel('Drosophila.eml') fpn_p0 = createFullPN('Variable:/CELL/CYTOPLASM:P0:Value') fpn_p1 = createFullPN('Variable:/CELL/CYTOPLASM:P1:Value') log_p0 = createLoggerStub('Variable:/CELL/CYTOPLASM:P0:Value') log_p0.setLoggerPolicy([10, 0, 0, 0]) log_p0.create() ConfirmWindow("Logger for Variable P0 created", 'Test') run(10) ConfirmWindow("Simulation run for 10 secs", "Test") # save model saveModel('Drosophila2.eml') ConfirmWindow("Model saved", 'Test') #create entitylistwindow entitylist1 = createEntityListWindow() ConfirmWindow("EntityListWindow tested", 'Test')
rule_id = record.periodic_rule.id scheduler.RemovePeriodicRecording(rule_id, delete_records=False) ]: i: o: 77() self.nodes: {0: <unpyclib.structure.node instance at 0xb757ed2c>, 77: <unpyclib.structure.node instance at 0xb757e42c>} nname: 0 n 0(None)[def __do_cancel(context): record = context['selected'] scheduler = WyRecord().scheduler try: rule_id = record.periodic_rule.id scheduler.RemovePeriodicRecording(rule_id, delete_records=False) ConfirmWindow(_('Are you sure ?'), confirm_action=__do_cancel, confirm_args=(context,)).show() ]: i: o: self.nodes: {0: <unpyclib.structure.node instance at 0xb757b56c>} nname: 18 n 18(None)[record_id = context['selected'].record.id scheduler = WyRecord().scheduler scheduler.UpdateRecordingName(record_id, kbd.text) context['selected'].show_menu() kbd.hide() ]: i: 9(), 17() o: