[Tutor] executing automatically a command in a PyShell

André Roberge andre.roberge at ns.sympatico.ca
Tue Oct 26 23:15:28 CEST 2004


I'm running a python interpreter shell in a wxPython app,
(a page in a notebook) and I'd like to have the command

from  __future__ import *

run automatically at the beginning.

The way I call the python shell is through
        win = py.shell.Shell(self, -1, introText="")
        self.AddPage(win, "Python interpreter")

André




More information about the Tutor mailing list