How to install WxPython
"wxPython is a wrapper for the cross-platform GUI API (often referred to as a 'toolkit') wxWidgets (which is written in C++) for the Python programming language. It is one of the alternatives to Tkinter, which is bundled with Python. It is implemented as a Python extension module (native code). Other popular alternatives are PyGTK and PyQt. Like wxWidgets, wxPython is free software" [1]
Steps to install:
1. Go to http://www.wxpython.org/
2. Find the downloads section on the left hand bar and click "Stable"
3. Find your operating system and Python version.
4. Hit the link that takes you to the download page (It's on Sourceforge)
5. Wait for the download to finish
6. Run the installer
7. If you've done all these steps it should work.
TO TEST:
Save this code as frame.py:
Code:
import wx
class charlie(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,'Frame', size=(300,200))
panel=wx.Panel(self)
self.Bind(wx.EVT_CLOSE, self.closewindow)
def closewindow(self,event):
self.Destroy()
if __name__=='__main__':
app=wx.PySimpleApp()
frame=charlie(parent=None,id=-1)
frame.Show()
app.MainLoop()
You should now have an empty frame!
I know this isn't the most advanced tutorial, but I think it is a pretty useful one because it explains how to get a VERY useful tool.
Enjoy ::thumbsup::