PyQt4 strangeness
Tina I
tinaweb at bestemselv.com
Tue Jan 23 08:28:07 EST 2007
Phil Thompson wrote:
> The module structure of PyQt reflects the library structure of Qt. Qt4 has
> different libraries to Qt3 so PyQt4 has different modules to PyQt3.
>
> The top level PyQt4 module ensures that PyQt3, PyQt4 (and eventually PyQt5)
> can all be installed side by side in the same site-packages directory.
>
> The style of import statement you use is up to you. All of the PyQt4 examples
> adopt the style you describe, but you can achieve the equivalent of your
> current practice by doing the following instead...
>
> from PyQt4.Qt import *
>
> Phil
Ah, I see :)
Thanks for the explanation.
Tina
More information about the Python-list
mailing list