PyWrap in Windows?

Is it possible use PyWrap in windows without resorting to
the command line? Section 4.4 of wxPython in Action shows running it
in Linux but not in Windows.

Thanks,

Les Hazlett

···

The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.

Hazlett, Les wrote:

Is it possible use PyWrap in windows without resorting to the command line? Section 4.4 of _wxPython in Action_ shows running it in Linux but not in Windows.

PyWrap is intended to be used as a command-line tool, but it's not hard to do the same type of thing in your own code. For example:

     import wx.py
     shell = wx.py.shell.ShellFrame(frame,
                                    locals={'wx':wx, 'frame':frame})
     shell.Show()

Whatever is put in the locals dictionary is what shows up in the main namespace in the shell.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!