[PyKDE] QtCore.Qt and QtGui.Qt

Giovanni Bajo rasky at develer.com
Thu Mar 2 11:09:46 GMT 2006

Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> Up until recently I had planned (and partially implemented) the idea that
> namespace would only appear once and that any objects implemented in other
> modules would be placed in it. In other words...
> from PyQt4 import QtCore
> dir(QtCore)
> from PyQt4 import QtGui
> dir(QtCore)
> ...would give different output for each dir(). This was a pain to
> and (I thought) more confusing for the user - I'm not saying which of
> carried the most weight.

Are you saying that this:

from PyQt4.QtCore import *
from PyQt4.QtGui import *


won't show the full Qt namespace, thus making PyQt4 unusable without the
annoying QtCore/QtGui prefix in front of everything?
Giovanni Bajo

More information about the PyQt mailing list