首页 > 代码库 > 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()
debian(wheezy)安装wxPython进行GUI开发.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。