Python Forum
[WxPython] the newbiest question since the beginning of time - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [WxPython] the newbiest question since the beginning of time (/thread-7012.html)



the newbiest question since the beginning of time - Klar - Dec-17-2017

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...


RE: the newbiest question since the beginning of time - Larz60+ - Dec-17-2017

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.


RE: the newbiest question since the beginning of time - Klar - Dec-17-2017

I'm using Python 3.4.3.


RE: the newbiest question since the beginning of time - Larz60+ - Dec-17-2017

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
This is a great way to learn how to use the package


RE: the newbiest question since the beginning of time - Klar - Dec-18-2017

and how do i extract .tar.gz


RE: the newbiest question since the beginning of time - Larz60+ - Dec-18-2017

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.


RE: the newbiest question since the beginning of time - Klar - Dec-18-2017

Keeping in style with all my problems related to python...
NO MODULE NAMED WX


RE: the newbiest question since the beginning of time - Larz60+ - Dec-18-2017

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))


RE: the newbiest question since the beginning of time - Klar - Dec-20-2017

but no linux
or do i use the command prompt


RE: the newbiest question since the beginning of time - Larz60+ - Dec-20-2017

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.