[PyQt] Symbol naming system for PyQt under Python 3

Giovanni Bajo rasky at develer.com
Fri Dec 12 22:29:57 GMT 2008

On 12/12/2008 11:20 PM, Paul A. Giannaros wrote:
> On Fri, Dec 12, 2008 at 9:17 PM, Marcell Mars <marcell.mars at gmail.com> wrote:
>> On Fri, Dec 12, 2008 at 7:09 PM, Paul A. Giannaros <paul at giannaros.org> wrote:
>>> Any thoughts on this?
>> do you want to do something like:
>> import PyQt4.QtCore as Qt
>> import PyQt4.QtGui also as Qt
> Sort of. It's mainly about the naming, but I envision it working something like:
> from PyQt4 import Qt
> import PyQt4.QtGui
> import PyQt4.QtCore
> a = Qt.Application(....)
> b = Qt.Label(.....)
> etc

Doh, so you're proposing that importing a module has the side effect of 
populating a different namespace. This is absolutely implicit and 
counter-intuitive, and has no equivalent in the standard library nor any 
external library I can think of.
Giovanni Bajo
Develer S.r.l.

More information about the PyQt mailing list