Example #1
0
    def on_open_notebook(self, action):
        if not self._confirm_discard():
            return

        new_window = application.open_notebook_dialog(parent=self.window)
        if new_window:
            self._close_window()
Example #2
0
    def on_open_notebook(self, action):
        if not self._confirm_discard():
            return

        if not self._wait_for_execution():
            return

        new_window = application.open_notebook_dialog(parent=self.window)
        if new_window:
            self.close(confirm_discard=False)
Example #3
0
    def on_open_notebook(self, action):
        if not self._confirm_discard():
            return

        if not self._wait_for_execution():
            return

        new_window = application.open_notebook_dialog(parent=self.window)
        if new_window:
            self.close(confirm_discard=False)
Example #4
0
 def on_open_notebook(self):
     application.open_notebook_dialog()
Example #5
0
 def on_open_notebook(self):
     application.open_notebook_dialog()
Example #6
0
 def on_open_notebook(self, action):
     application.open_notebook_dialog(parent=self.window)
Example #7
0
 def on_open_notebook(self, action):
     application.open_notebook_dialog(parent=self.window)