def __init__(self, garmon): gtk.ScrolledWindow.__init__(self) console = Console(locals=dict(garmon=garmon), banner=_("Python Shell. Inspect Garmons internals."), use_rlcompleter=False) self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.add(console) self.show_all()
def add_python_console(self): self.append_page(Console(), gtk.Label("PyConsole"))