Migrate From PyQt3 to PyQt4
Dave Angel
davea at ieee.org
Tue Sep 8 09:31:26 EDT 2009
nusch wrote:
> I want to migrate from qt,pyqt,pykde 3 to 4 and remove all *.py files
> to work with newer version, also after remove pyqt3support. How can I
> do it in easy way ? I've read here http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg15009.html
> something about deprecation warning but can't see such warning
> anywhere. My python modules also produce a lot of output so I can
> easily overlook such information. Is there a way to stop execution
> after every old qt3 class/method? I know I can remove all qt3,
> qt3support libs, but I don't want to make whole system unstable
> because of one project.
>
>
Generic answer: when migrating one Python project independent of others
on the same system, I'd suggest having an independent Python
installation for the temporary mix of addon libraries. In your case the
only difference might be the absense of the qt version 3 stuff.
The way of supporting multiple environments varies by system and by user
environment, but generally you can either change the shebang line, or
the script/batch file you start the application with. If you're on
Windows, you do not want to change the file association to point to the
new environment, so be careful during install, not to make this the
"default" Python installation.
DaveA
More information about the Python-list
mailing list