Show More
@@ -712,7 +712,9 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
712 | active_eventloop = None |
|
712 | active_eventloop = None | |
713 | def enable_gui(self, gui=None): |
|
713 | def enable_gui(self, gui=None): | |
714 | if self._inputhook is not None and gui is not None: |
|
714 | if self._inputhook is not None and gui is not None: | |
715 | warn(f"Shell was already running a gui event loop for {self.active_eventloop}; switching to {gui}.") |
|
715 | warn( | |
|
716 | f"Shell was already running a gui event loop for {self.active_eventloop}; switching to {gui}." | |||
|
717 | ) | |||
716 | if gui and (gui not in {"inline", "webagg"}): |
|
718 | if gui and (gui not in {"inline", "webagg"}): | |
717 | # This hook runs with each cycle of the `prompt_toolkit`'s event loop. |
|
719 | # This hook runs with each cycle of the `prompt_toolkit`'s event loop. | |
718 | self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui) |
|
720 | self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui) |
General Comments 0
You need to be logged in to leave comments.
Login now