Esempio n. 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()
Esempio n. 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)
Esempio n. 3
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)
Esempio n. 4
0
 def on_new_notebook(self):
     application.create_notebook_dialog()
Esempio n. 5
0
 def on_new_notebook(self):
     application.create_notebook_dialog()
Esempio n. 6
0
 def on_new_notebook(self, action):
     application.create_notebook_dialog(parent=self.window)
Esempio n. 7
0
 def on_new_notebook(self, action):
     application.create_notebook_dialog(parent=self.window)