From ff0d764a61054552337b65af98ca8db252b66180 2008-03-16 12:25:37 From: Ville M. Vainio Date: 2008-03-16 12:25:37 Subject: [PATCH] ipy_leo: hijact Tk on startup --- diff --git a/IPython/Extensions/ipy_leo.py b/IPython/Extensions/ipy_leo.py index 0380427..38cec27 100644 --- a/IPython/Extensions/ipy_leo.py +++ b/IPython/Extensions/ipy_leo.py @@ -10,6 +10,7 @@ import re import UserDict from IPython.ipapi import TryNext import IPython.macro +import IPython.Shell def init_ipython(ipy): """ This will be run by _ip.load('ipy_leo') @@ -19,6 +20,7 @@ def init_ipython(ipy): """ global ip ip = ipy + IPython.Shell.hijack_tk() ip.set_hook('complete_command', mb_completer, str_key = '%mb') ip.expose_magic('mb',mb_f) ip.expose_magic('lee',lee_f)