#1
|
|||
|
|||
wxPython with Vizard
This thread explains how to install wxPython on your computer and getting it to work with Vizard.
Step 1: Install Vizard on your computer Step 2: Download the script RegisterVizardWithPython.py. Open it with Vizard and run it. It should print out "--- Python 2.3 is now registered!" when successfully finished. Step 3: Go to http://www.wxpython.org Under the download section click on Binaries Under Win32 click on the link to download wxPython for Python 2.3. There will be an ansi version and a Unicode version, download the ansi version. Follow the link and download the file to your computer. There will also be a link to download the documentation and demos called "win32-docs-demos". Download this also. Step 4: Once the files are downloaded, run the main installer. The installer should automatically detect where Vizard is installed and select it as the install directory. When the main installer has finished, run the installer for the documentation and demos. Step 5: To test out whether wxPython works, click on the Start menu -> Programs -> wxPython2.6 Docs Demos and Tools -> Sample Apps. Open the doodle folder then open superdoodle.py in Vizard. If you are able to make doodles, then you successfully installed wxPython. !!!!!!IMPORTANT - READ THIS!!!!!!! Running wxPython scripts multiple times in the Vizard GUI may cause crashes. This is because most of the wxPython scripts do not clean up after themselves. Most wxPython scripts have the following code at the end which basically runs the main application: Code:
if __name__ == '__main__': app = SomeApp() app.MainLoop() Code:
del app |
Thread Tools | |
Display Modes | Rate This Thread |
|
|