Is the combination of Python 3 and PyQt 4 recommended? Are there any alternatives?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I don't see why not, there is a version available for Python 3 which works normally, and the only alternative if you really need Qt would be PySide, which is far from being compatible with Python 3.
Other GUI alternatives would be wxPython (not in Python 3 yet AFAIK) and the "native" Tkinter (which is something else...).
回答2:
If PyQt4 is the only non-native module you need, there should be no problem. Check if all modules you need are available for Py3k! PyQt4 for Py3k is not yet integrated into all distributions. I.e. on Debian PyQt4 only works with Python 2 currently.
Have a look at 3to2! A tool to convert Py3 to Py2 code. That is just better than coding in Py2 and using 2to3.