Exemple #1
0
    def on_new_notebook(self, action):
        if not self._confirm_discard():
            return

        new_window = application.create_notebook_dialog(parent=self.window)
        if new_window:
            self._close_window()
Exemple #2
0
    def on_new_notebook(self, action):
        if not self._confirm_discard():
            return

        if not self._wait_for_execution():
            return

        new_window = application.create_notebook_dialog(parent=self.window)
        if new_window:
            self.close(confirm_discard=False)
    def on_new_notebook(self, action):
        if not self._confirm_discard():
            return

        if not self._wait_for_execution():
            return

        new_window = application.create_notebook_dialog(parent=self.window)
        if new_window:
            self.close(confirm_discard=False)
 def on_new_notebook(self):
     application.create_notebook_dialog()
Exemple #5
0
 def on_new_notebook(self):
     application.create_notebook_dialog()
Exemple #6
0
 def on_new_notebook(self, action):
     application.create_notebook_dialog(parent=self.window)
 def on_new_notebook(self, action):
     application.create_notebook_dialog(parent=self.window)