Python论坛  - 讨论区

标题:[python-chinese] linux gnome 环境编译wxpython的问题

2008年01月19日 星期六 12:58

MaLi mali98765在gmail.com
星期六 一月 19 12:58:00 HKT 2008

opensuse, gnome, wxPython-src-2.8.7.1,
È«³Ì±àÒëÎÞ´í£¬demo´úÂëÔËÐÐÔÝδ·¢ÏÖÎÞ·¨ÔËÐÐÎÊÌ⣬µ«ÊdzöÏÖÏÂÃæ2¸ö³ö´í£º
1¡£ pythonµÄcommand line½çÃ棬help(wx)³ö´í£º
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> help(wx)
¡£¡£¡£
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py",
line 242, in __repr__
    def __repr__(self):                 return 'wx.Colour' + str(self.Get
(True))
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py",
line 230, in Get
    return _gdi_.Colour_Get(*args, **kwargs)
TypeError: in method 'Colour_Get', expected argument 1 of type 'wxColour *'

2¡£ÔÚdemo.pyÔËÐкó´ò¿ª½çÃæÀïÃæµÄHelp --> Open Widget Inspector ÎÞ·¨´ò¿ª£¬½çÃæ³ö´í£º
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/stc.py",
line 10, in 
    import _stc
ImportError: No module named _stc

widget ±àÒë²ÎÊýÈçÏ£¨ºÍ¹ÙÍø±È¼ÓÁ˺ܶàmsÎÞÒâÒåµÄenable£©£º
./configure --prefix=/opt/wx/  --with-gtk=2 --enable-monolithic
--with-gnomeprint --with-opengl --enable-debug --enable-debug_gdb
--enable-geometry --enable-graphics_ctx --enable-sound --with-sdl
--enable-mediactrl --enable-display --enable-optimize --enable-unicode
--enable-debug_flag --with-gnomevfs --enable-listctrl --enable-debug_info
--enable-gui --enable-shared --enable-debugreport --enable-timer
--enable-threads  --enable-docview --enable-help --enable-button
--enable-scrollbar --with-opengl
        make $* \
            && make -C contrib/src/gizmos $* \
            && make -C contrib/src/stc $*
 make install

wxpython±àÒëÈçÏ£º
python setup.py build
 python2.5 setup.py build_ext --inplace --debug£¨ÓÖ°´¹ÙÍø½éÉܱàÒ룩
python setup.py install
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080119/c00f495d/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号