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é
P.S. I'm new to (wx)Python but I'd like to congratulate Robin Dunn for
a great job.
win.push("from __future__ import *")
···
On Tue, 26 Oct 2004 20:58:12 -0300, Andre Roberge <andre.roberge@gmail.com> wrote:
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é
P.S. I'm new to (wx)Python but I'd like to congratulate Robin Dunn for
a great job.
Robin
3
Andre Roberge wrote:
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")
The Shell class has a push(command) method that will let you give it lines to execute when it first starts.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!