こもろぐ @tenkoma

What We Find Changes Who We Become -- Peter Morville著『アンビエント・ファインダビリティ 』

広告:本ブログで紹介している書籍等商品の紹介でAmazonアソシエイトを利用していることがあります。

wxGladeでつまづく

wxWidgets でクロスプラットフォーム GUIアプリを作ろうを参考にしながらwxGladeを試してみたが、ラベルの貼り付けができない。コマンドラインを見るとなんか吐いていた。

Gdk-CRITICAL **: file gdkwindow.c: line 1390 (gdk_window_get_size): assertion `window != NULL' failed.
Traceback (most recent call last):
  File "/home/hogehoge/wxGlade-0.3.5.1/edit_sizers/edit_sizers.py", line 117, in drop_widget
    common.widgets[common.widget_to_add](self.parent, self.sizer, self.pos)
  File "/home/hogehoge/wxGlade-0.3.5.1/widgets/static_text/static_text.py", line 109, in builder
    misc._encode(label), sizer, pos,
  File "/home/hogehoge/wxGlade-0.3.5.1/common.py", line 234, in _encode_from_xml
    return label.encode(encoding, 'replace')
LookupError: unknown encoding: EUC-JP

"unknown encoding: EUC-JP"でGoogleにきいたらhttp://www.python.jp/pipermail/python-ml-jp/2003-November/002582.htmlがヒットした。そこでSynapticでpython-japanese-codecsを導入したら、ラベルも貼り付けられるようになった。まだなんかエラーみたいなものを吐くけどとりあえずこれでやってみる