Debian (wheezy) installs Wxpython for GUI development.

Source: Internet
Author: User
Tags wxwidgets

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.