##// END OF EJS Templates
Add hack to change traceback syntax highlighting (#14138)...
Add hack to change traceback syntax highlighting (#14138) Similar to #13756, add a hack to configure the Pygments style for syntax highlighting of tracebacks. This does not change default behavior. To use the hack, add to ipython_config.py: from IPython.core.ultratb import VerboseTB VerboseTB._tb_highlight_style = "pastie" Mitigates #13953.

File last commit:

r27843:667f3cbe
r28369:124de523 merge
Show More
gtk3.py
14 lines | 280 B | text/x-python | PythonLexer
"""prompt_toolkit input hook for GTK 3
"""
from gi.repository import Gtk, GLib
def _main_quit(*args, **kwargs):
Gtk.main_quit()
return False
def inputhook(context):
GLib.io_add_watch(context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, _main_quit)
Gtk.main()