<DIV>Andre, thanks for the help with this. I put it to work yesterday and it works perfectly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>was wondering if it is possible to import modules without a users having to type 'import whatever'. for example in my application I would like the user to just start operating on arrays that exist in my program. But I have to load both the arrays and Numeric into the python shell that I created. how can I do this? thanks.<BR><BR><B><I>André Roberge &lt;andre.roberge@gmail.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Jeff Peery wrote:<BR>&gt; hello, is it possible to add something like the python IDLE into<BR>&gt; another program, say if I wanted to simply run scripts from within a<BR>&gt; wxPython program? Could someone point me to the correct reference?<BR>&gt; thanks.<BR>&gt; <BR>Hi Jeff,<BR><BR>you may want to have a look at PyCrust, PyShell and the like.<BR>I do something like this in my rur-ple app (on sourceforge).<BR><BR>The relevant lines of code are:<BR><BR>import wx.py as py<BR><BR>[inside a wx.Notebook]<BR>win = py.shell.Shell(self.window, -1,<BR>introText = tr.INTERPRETER_INTRO_TEXT)<BR>self.window.AddPage(win, tr.PYTHON_INTERPRETER)<BR>============<BR><BR>HTH,<BR><BR>André<BR><BR>_______________________________________________<BR>Tutor maillist - Tutor@python.org<BR>http://mail.python.org/mailman/listinfo/tutor<BR></BLOCKQUOTE>