lowercase class names, eg., qtgui ? (PyQt4)

Glen mansonmuni at alexandria.cc
Wed Apr 25 12:53:46 EDT 2007


Hello,

In the file generated by pyuic4 from Designer's .ui file I noticed the use
of lower case class names (I'm assuming these are the names of classes,
not modules).  For example:

It imports thusly:

from PyQt4 import QtGui

then uses things like:
        self.gridlayout = qtgui.qgridlayout(dldialog)

What exactly is going on here?  Are these instances that are defined
somewhere else (their not in the local scope.)? Can I do the same in my
code when I import something?

Thanks,

Glen

Glen




More information about the Python-list mailing list