Python Forum

Full Version: the newbiest question since the beginning of time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed wxpython and...




Wait for it...







I don't know what I should type after import to import it.
wx didn't work, neither did wxpython or wxwidgets...
which version of python are you using?
This is important becauseĀ  wxpython for python 2.7 is quite different from the one for python 3.
I'm using Python 3.4.3.
Ok, so you want to run the demo.py program to get this, you need to download the tar file, not to reinstall, but to get to the demo program
  • Download the tarball: https://pypi.python.org/packages/bc/6f/f...5d14534bf7
  • extract the files: tar xf wxPython-4.0.0b2.tar.gz
  • This will create the directory structure for the package
  • cd wxPython-4.0.0b2\demo
  • python demo.py
  • Explore what you can do, I'm sure you will think of an application while you play.
  • you can copy the demo code and mess around with it, but in your play area, copy the following files as you will need them to run the code as written:
  • copy run.py
  • you will need to copy other dependent files as you encounter them.

This is a great way to learn how to use the package
and how do i extract .tar.gz
tar -xf wxPython-4.0.0b2.tar.gz

It was in the list, but the way I had it, I don't think it would have worked on Linux (without th - on the options)
7-zip which I use on windows will let you get away with the original format I showed.

For the rest, follow the list in post 20. Any problems, were here.
Keeping in style with all my problems related to python...
NO MODULE NAMED WX
sounds like you didn't use the command above verbatim!

tar -xf wxPython-4.0.0b2.tar.gz

You Must be running python 3 to load phoenix! Also make sure you download the proper tar file (must be named: wxPython-4.0.0b2.tar.gz (before download))
but no linux
or do i use the command prompt
If you download 7-zip, see: http://www.7-zip.org/
it will unzip a tar file on windows. For whatever reason, I was thinking you were running Linux.