wxPython 中缺少 类
Missing classes in wxPython
在 wxPython 的文档中有一些 类 缺失。
例如:TextCompleter。
但是在 python 我得到:
>>> import wx
>>> print wx.__version__
2.9.3.1
>>> from wx import TextCompleter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name TextCompleter
我也尝试过最新版本的 wxPython (3.0)
您可能已经注意到,您指的是 wxPython (Phoenix) 文档。但是你有 classic version installed, where TextCompleter
has not been wrapped in SWIG (and probably never will, because development effort is concentrated on Phoenix). This class has been wrapped in Phoenix. If you are absolutely interested in trying out Phoenix, set up a virtualenv and pip install <path-to-wheel>
a snapshot build。帮自己一个忙,在尝试安装 .whl
文件之前,将与您的 python 匹配的轮子下载到本地磁盘。
在 wxPython 的文档中有一些 类 缺失。
例如:TextCompleter。 但是在 python 我得到:
>>> import wx
>>> print wx.__version__
2.9.3.1
>>> from wx import TextCompleter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name TextCompleter
我也尝试过最新版本的 wxPython (3.0)
您可能已经注意到,您指的是 wxPython (Phoenix) 文档。但是你有 classic version installed, where TextCompleter
has not been wrapped in SWIG (and probably never will, because development effort is concentrated on Phoenix). This class has been wrapped in Phoenix. If you are absolutely interested in trying out Phoenix, set up a virtualenv and pip install <path-to-wheel>
a snapshot build。帮自己一个忙,在尝试安装 .whl
文件之前,将与您的 python 匹配的轮子下载到本地磁盘。