[PyKDE] QtCore.Qt and QtGui.Qt
Sreeram Kandallu
sreeram at tachyontech.net
Thu Mar 2 11:43:32 GMT 2006
Giovanni Bajo wrote:
> Are you saying that this:
>
> ---------------------------
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
>
> dir(Qt)
> ---------------------------
>
> won't show the full Qt namespace, thus making PyQt4 unusable without the
> annoying QtCore/QtGui prefix in front of everything?
There are very few entries in QtGui.Qt, so as a workaround you can
import QtCore *after* QtGui
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4 import QtGui
and if you need QtGui.Qt, you can use that alone with a explicit QtGui
prefix.
But ofcourse, i would still prefer that QtCore.Qt and QtGui.Qt were the
same! :) (or better still, not have QtGui.Qt at all!!)
Regards
Sreeram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060302/b9ca5f22/signature.bin
More information about the PyQt
mailing list