mkdir wxpython cd wxpython hg init hg pull -u http://python.matrix.jp/repos/wxpython リソースファイル解説 リソースのツリー: XRCedの使い方のコツを解説します。 基本の学習には XRCedの使い方 を参照してください。 (最新版にてoptionはpropotionという名称に変わっていますので読み替えてください。) Fileメニューの「Generate Python」をクリック。 ここでの設定内容は以下のようにしています。 このようにすると、参照した画像リソースやIDを設定したコントロールへのアクセスを ジェネレートしたpythonコードのなかですべて準備してくれるようになります。 そして、XRCedでの編集内容を保存するたびにresource_xrc.pyを自動的に生成するようになります。 以下では
TCP/IPプロトコルでのネットワークプログラミングをPythonで実装することが目標。 今回の検討項目 前回(http://d.hatena.ne.jp/Megumi221/20110310)は、簡単なチャットプログラムを実装してみたが、ここではネットワークプログラムにGUIをラップする方法を検討する。 というのも、実際にコードを書いてみると、GUIのループ(wxPythonではapp.MainLoop()のこと)とネットワークプログラムのwhileループ(データの送受信をするところ)の両立が単純ではない。コードの中にwhileループがあると、GUIが立ち上がらない、もしくは立ちあがってもwhileループに入るとフリーズすることが分かる。 これを避けるためには、通信部分をThreadで実行するか、wx.Yieldを使ってフリーズするのを回避する。 参考サイト wxPyWiki LongR
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く