[PyKDE] PyQt v4 Roadmap

Truls A. Tangstad kerfue+pykde at herocamp.org
Thu Feb 17 16:11:35 GMT 2005

On Thu, Feb 17, 2005 at 08:05:49AM -0800, Longson, Joe wrote:
> >The separate Qt v4 libraries will be wrapped as separate Python modules.
> >The module names will be the same as the corresponding library (eg.
> >QtCore, QtGui) and be grouped as a single Python package called PyQt4. The
> >suggested programming style for new applications would then be:
> >
> >import sys
> >from PyQt4 import QtGui
> >
> >app = QtGui.QApplication(sys.argv)

> Would we be required to use the from PyQt4 import QtGui?
> The existing namespace allows us to do "import qt" Could a similar 
> facility be provided?  (for maintaining more code compatibility)
> e.g.
> In qt.py --------------
> from PyQt4 import *
> from PyQt4.QtGui import *

Wouldn't that be best left to individual programmers? If you need such
a namespace, just provide it as part of your application.

Truls A. Tangstad - <kerfue+pykde at h e r o c a m p.org>

More information about the PyQt mailing list