Debian (Wheezy) installs wxPython for GUI development

Source: Internet
Author: User
Tags wxwidgets

Debian (Wheezy) installs wxPython for GUI development

Debian (Wheezy) installs wxPython for GUI development

Because the official http://wiki.wxpython.org/InstallingOnUbuntuOrDebian does not have

So here we go to the warehouse for search.

Root @ debian:/# apt-cache search python-wxgtk
Python-wxgtk2.8-wxWidgets Cross-platform C ++ GUI toolkit (wxPython binding)
Python-wxgtk2.8-dbg-wxWidgets Cross-platform C ++ GUI toolkit (wxPython binding, debug version)

Root @ debian:/# apt-get install python
Display all 1846 possibilities? (Y or n)
Root @ debian:/# apt-get install python-wxgtk2.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
Libgadu3
Use 'apt-get autoremove 'to remove it.
The following extra packages will be installed:
Python-wxversion
Suggested packages:
Wx2.8-doc wx2.8-examples editra
The following NEW packages will be installed:
Python-wxversion python-wxgtk2.8
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,671 kB of archives.
After this operation, 33.8 MB of additional disk space will be used.

Now let's write a simple Hello world test.

#! /Usr/bin/env python
# Coding = UTF-8
Import wx
App = wx. App (False)
Frame = wx. Frame (None, wx. ID_ANY, "Hello World! ")
Frame. Show (True)
App. MainLoop ()

Run the py file. GUI, and enjoy ~

Install wxPython in Ubuntu

This article permanently updates the link address:

Related Article

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.