Python GUI问题
2013-04-02 08:02
465 查看
最近把空闲时间花在看《Rapid GUI programming with Python and Qt》一书上。
我选择的是在python3 + PyQt4的平台上。
问题就出在QString上:
>>>from PyQt4 import QtCore
>>> str = QString('Welcome')
NameError: name 'QString' is not defined
换了一种方法:
>>>from PyQt4.QtCore import QString
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
from PyQt4.QtCore import QString
ImportError: cannot import name QString
又出现如此问题……
求解救……
我选择的是在python3 + PyQt4的平台上。
问题就出在QString上:
>>>from PyQt4 import QtCore
>>> str = QString('Welcome')
NameError: name 'QString' is not defined
换了一种方法:
>>>from PyQt4.QtCore import QString
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
from PyQt4.QtCore import QString
ImportError: cannot import name QString
又出现如此问题……
求解救……
相关文章推荐
- PYTHON GUI (PyQt5 安装问题解决)
- 关于他们回答的 "怎样在桌面建一个python GUI的快捷方式" 这个问题
- 解决python安装selenium报错问题ImportError: No module named 'selenium'
- python的GUI编程(Tkinter库)(三)
- 解决python中遇到的乱码问题
- 解决:Ubuntu(MacOS)+phantomjs+python的部署问题
- Python小项目-烤地瓜出现的问题
- python 程序出现 IDLE's subprocess didn't make connect…问题
- python 读中文乱码问题
- webdriver 验证码问题 selenium_python
- python初学遇到的问题总结
- Python - MySQLdb.connect连接lampp中mysql服务器问题的解决
- hadoop streaming python 处理 lzo 文件遇到的问题
- python-nmap在SLES11上似乎有点小问题
- 解决python-xml 模块 在ubuntu karmic中找不到的问题
- Python3下的NLTK及nltk_data安装问题(Ubuntu环境)
- python2.7中文编码报错问题
- Python *与** 参数问题
- 解决Python 2.6 连接 SQL Server 2000 乱码的问题
- 背包问题knapsack的三种解法(Python 和 C)