[PyQt] Symbol naming system for PyQt under Python 3

Henrik Pauli henrik.pauli at gmail.com
Sat Dec 13 00:11:51 GMT 2008

On Saturday 13 December 2008, David Boddie wrote:
> > No, my proposal is dropping the leading Q and using a Qt namespace
> > that doesn't require loading all modules. That way does seem
> > particularly odd, though. Perhaps a less counter-intuitive method
> > would be something like
> >
> > from pyqt4 import Qt
> > Qt.load('core', 'gui', 'svg')
> That's a fairly unusual solution, it has to be said.

Perl's Gtk2 seems to do that, for example:
GtkEntry -> Gtk2::Entry
GtkLabel -> Gtk2::Label
GdkColor -> Gtk2::Gdk::Color  (yes, that one's hideous :P)

And apparently QtRuby does that kind of thing as well.

More information about the PyQt mailing list