手机版
你好,游客 登录 注册
背景:
阅读新闻

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

[日期:2015-01-03] 来源:Linux社区  作者:rainysia [字体:大 中 小]

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

linux
相关资讯       wxPython 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款