Because the official Http://wiki.wxpython.org/InstallingOnUbuntuOrDebian is not wheezy.
So here we go straight to the warehouse.
[Email protected]:/# apt-cache Search Python-wxgtkpython-wxgtk2.8-wxwidgets cross-platform C + + GUI Toolkit (WxPython bin Ding) python-wxgtk2.8-dbg-wxwidgets cross-platform C + + GUI Toolkit (WxPython binding, Debug version)
[Email protected]:/# apt-get Install pythondisplay all 1846 possibilities? (Y or N) [Email protected]:/# apt-get Install python-wxgtk2.8reading package lists ... Donebuilding Dependency Tree Reading State information ... Donethe following package was automatically installed and are no longer required: libgadu3use ' Apt-get autoremove ' to R Emove it. The following extra packages would be installed: python-wxversionsuggested packages: wx2.8-doc wx2.8-examples Editrathe following NEW packages'll be installed: python-wxgtk2.8 Python-wxversion0 upgraded, 2 newly installed, 0 t o Remove and 0 not upgraded. Need to get 8,671 KB of archives. After this operation, 33.8 MB of additional disk space would be used.
Now write a simple Hello World test.
#!/usr/bin/env python# coding=utf-8import Wxapp = wx. APP (False) frame = wx. Frame (None, Wx.id_any, "Hello world!") Frame. Show (True) app. Mainloop ()
Run the following py file. The GUI is OK, enjoy ~
Debian (wheezy) installs Wxpython for GUI development.