MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / do_enable_gui

Function do_enable_gui

pydev_ipython/matplotlibtools.py:42–57  ·  view source on GitHub ↗
(guiname)

Source from the content-addressed store, hash-verified

40
41
42def do_enable_gui(guiname):
43 from _pydev_bundle.pydev_versioncheck import versionok_for_gui
44
45 if versionok_for_gui():
46 try:
47 from pydev_ipython.inputhook import enable_gui
48
49 enable_gui(guiname)
50 except:
51 sys.stderr.write("Failed to enable GUI event loop integration for '%s'\n" % guiname)
52 pydev_log.exception()
53 elif guiname not in ["none", "", None]:
54 # Only print a warning if the guiname was going to do something
55 sys.stderr.write("Debug console: Python version does not support GUI event loop integration for '%s'\n" % guiname)
56 # Return value does not matter, so return back what was sent
57 return guiname
58
59
60def find_gui_and_backend():

Callers

nothing calls this directly

Calls 4

versionok_for_guiFunction · 0.90
enable_guiFunction · 0.90
exceptionMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected