2008年01月19日 星期六 12:58
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
Zeuux © 2025
京ICP备05028076号