linux wxpython安装教程,Debian(Wheezy)安装wxPython进行GUI开发

Debian(Wheezy)安装wxPython进行GUI开发

因为官方的http://wiki.wxpython.org/InstallingOnUbuntuOrDebian 并没有wheezy的

所以这里我们直接去仓库搜吧

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-wxgtk2.8 python-wxversion

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.

现在写个简单的Hello world测试下吧

#!/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()

运行下这个py文件. GUI的就OK了, enjoy ~

Ubuntu中安装wxPython  http://www.linuxidc.com/Linux/2012-11/73911.htm

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-01/111176.htm

5e70e1bf34dc863009bede97304403a3.gif

TAG:

除非注明,文章均由 Linux系统学习 整理发布,欢迎转载。如有版权争议,请联系删除。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值