[PyKDE] QtCore.Qt and QtGui.Qt

Phil Thompson phil at riverbankcomputing.co.uk
Thu Mar 2 13:59:19 GMT 2006


On Thursday 02 March 2006 1:23 pm, Giovanni Bajo wrote:
> Sundance <sundance at ierne.eu.org> wrote:
> > 1) Having the Qt namespace as an external module.
>
> Perfect. I'm +1 on this.

I don't see how it helps. You've still got one module changing under your feet 
when you import another.

>
> > 2) Updating QtCore.Qt's _dict_ in the other modules instead of
> > creating a new Qt there.
>
> This would be *very* confusing and very implicit. I'm -1000 on this.

Which is the only way to implement it, which I thought was confusing, which is 
why I split the namespace across modules. And it's still the way you would 
implement the first suggestion - just a different dictionary.

Phil




More information about the PyQt mailing list