Show More
@@ -914,6 +914,11 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
914 |
|
914 | |||
915 | active_eventloop = None |
|
915 | active_eventloop = None | |
916 | def enable_gui(self, gui=None): |
|
916 | def enable_gui(self, gui=None): | |
|
917 | if self.simple_prompt is True and gui is not None: | |||
|
918 | print(f"Cannot install event loop hook for \"{gui}\" when running with `--simple-prompt`.") | |||
|
919 | print("NOTE: Tk is supported natively; use Tk apps and Tk backends with `--simple-prompt`.") | |||
|
920 | return | |||
|
921 | ||||
917 | if self._inputhook is None and gui is None: |
|
922 | if self._inputhook is None and gui is None: | |
918 | print("No event loop hook running.") |
|
923 | print("No event loop hook running.") | |
919 | return |
|
924 | return |
General Comments 0
You need to be logged in to leave comments.
Login now