Python and PyQt conflicts on hex()
2014-12-20 08:48
267 查看
Pre-conditions:
Import all PyQt libs into Python project(or just one .py file)
Result:
Compiling error such as "Type error of hex(QTestString), the expect type is QTestString" occurs when calling the hex() function.
Solution:
There are 2 solutions so far (for me):
a. Don't import all QT packages into the .py, just the needed ones.
b. Realize your own HEX() function in another .py, which import no QT module, and import this package in you main .py.
Import all PyQt libs into Python project(or just one .py file)
Result:
Compiling error such as "Type error of hex(QTestString), the expect type is QTestString" occurs when calling the hex() function.
Solution:
There are 2 solutions so far (for me):
a. Don't import all QT packages into the .py, just the needed ones.
b. Realize your own HEX() function in another .py, which import no QT module, and import this package in you main .py.
相关文章推荐
- Compiled Python 3.0 final and Python 2.6.1 on AIX 5.2 successfully
- Install MySQL 5 for Python 2.6 (and django) on Windows
- install opencv3 with python2.7 bindings on Mac using Hombrew and git
- How to install Python 2.7 and Python 3.3 on CentOS 6
- IronPython and dynamic lanauage on .net
- Django on IronPython and Windows
- How to install Python 2.7 and Python 3.3 on CentOS 6
- Upgrade Python And Pip On CentOS 6.x
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- Install OpenCV 3.0 and Python 2.7+ on Ubuntu
- Issue 71 - pymssql - Undefined symbols on Mac, CentOS, Redhat with pre-compiled build - A fast MS SQL Server client library for Python directly using C API instead of ODBC. It is Python DB-API 2.0 compliant. Works on Linux, *BSD, Solaris, Mac OS X and Win
- Building Python-3.1 with sqlite3 and SSL support on NT 4
- How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04
- install opencv 3.0.0 with python 3.4 on Mac using Homebrew and Git
- install Python 2.7 and Python 3.3 on CentOS 6
- Notes on Python Naming and binding
- 搭建 eclipse pydev python 开发环境 on mac and windows
- How to install Python 2.7 and Python 3.3 on CentOS 6
- How to install python, wxPython and ride on CENTOS
- caffe setup on ubuntu 15.04 with CPU and NO GPU and NO Python