Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
 def add_python_console(self):
     self.append_page(Console(), gtk.Label("PyConsole"))