(guiname)
| 40 | |
| 41 | |
| 42 | def 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 | |
| 60 | def find_gui_and_backend(): |
nothing calls this directly
no test coverage detected