#navi(../)

* Debian 7 WheezyにwxPythonをインストールしてみた [#kd294ee1]
wxPythonをDebianにインストールし簡単なGUIプログラムを起動するまでの記事になります。

#contents
#htmlinsertpcsp(ll-top.html,ll-sp.html)

* 関連記事 [#l0fc4b8f]
-[[Ubuntu12.04にwxPythonをインストールしてみた>wxPython/Ubuntu12.04にwxPythonをインストールしてみた]]
-[[CentOS6にwxPythonをインストールしてみた>wxPython/CentOS6にwxPythonをインストールしてみた]]
-[[Ubuntu12.04にwxPerlの環境をインストールしてみた>wxPerl/Ubuntu12.04にwxPerlの環境をインストールしてみた]]

* apt-getコマンドでwxPythonをインストール [#p2eff3a9]
まずは、wxPythonのパッケージをapt-cacheコマンドで検索しました。
 sakura@hpmini:~$ 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)

''python-wxgtk2.8''がwxPythonのパッケージ名になるので、apt-get installでインストールします。
 sakura@hpmini:~$ su -
 パスワード:
 root@hpmini:~# apt-get install python-wxgtk2.8
あとはメッセージに従いwxPythonのインストールを進めます。~
提案パッケージは以下のものが出力されました。~
必要に応じてインストールすれば良いと思います。
 提案パッケージ:
   wx2.8-doc wx2.8-examples editra

* wxPythonでHello world [#kd6a925d]
以下のURLにあるHello worldを拝借し実行してみたときのスクリーンショットです。~
http://wiki.wxpython.org/Getting%20Started
#ref(hello.py.zip)
 #!/usr/bin/env python
 import wx
 
 app = wx.App(False)
 frame = wx.Frame(None, wx.ID_ANY, "Hello World")
 frame.Show(True)
 app.MainLoop()

-上記スクリプト実行時のスクリーンショット
#ref(01.gif)


以上、DebianにwxPythonをインストールしてみた記事でした。

#htmlinsertpcsp(ll-btm.html,ll-sp.html)

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS