Python Forum
[WxPython] the newbiest question since the beginning of time
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WxPython] the newbiest question since the beginning of time
#1
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...
Reply
#2
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.
Reply
#3
I'm using Python 3.4.3.
Reply
#4
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
Reply
#5
and how do i extract .tar.gz
Reply
#6
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.
Reply
#7
Keeping in style with all my problems related to python...
NO MODULE NAMED WX
Reply
#8
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))
Reply
#9
but no linux
or do i use the command prompt
Reply
#10
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Beginning in Qt NetCancer 2 4,402 Dec-03-2016, 11:51 PM
Last Post: Raures

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020