Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-14 Thread Giovanni Bajo
On sab, 2008-12-13 at 00:49 +0100, David Boddie wrote: > On Fri Dec 12 22:57:22 GMT 2008, Paul A. Giannaros wrote: > > > Way out, I'm afraid. ~60% of QtCore symbols start with a "Q", and a > > further ~21% start with a "q". That still leaves around 32 symbols > > (16%) once you weed out __doc__ et

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-13 Thread Giovanni Bajo
On ven, 2008-12-12 at 22:57 +, Paul A. Giannaros wrote: > On Fri, Dec 12, 2008 at 10:28 PM, Giovanni Bajo wrote: > > On 12/12/2008 11:18 PM, Paul A. Giannaros wrote: > >> > >> On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson > >> wrote: > >>> > >>> On Fri, 12 Dec 2008 18:09:56 +, "Paul A. G

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Henrik Pauli
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 py

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread David Boddie
On Fri Dec 12 22:57:22 GMT 2008, Paul A. Giannaros wrote: > Way out, I'm afraid. ~60% of QtCore symbols start with a "Q", and a > further ~21% start with a "q". That still leaves around 32 symbols > (16%) once you weed out __doc__ etc. Some have ridiculously common > names ("center", "flush", "bin

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 10:28 PM, Giovanni Bajo wrote: > On 12/12/2008 11:18 PM, Paul A. Giannaros wrote: >> >> On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson >> wrote: >>> >>> On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" >>> wrote: Hi all, When there was a discuss

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Phil Thompson
On Fri, 12 Dec 2008 22:18:41 +, "Paul A. Giannaros" wrote: > On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson > wrote: >> >> On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" >> wrote: >> > Hi all, >> > >> > When there was a discussion regarding PyQt wishes for Python 3.0 I >> > proposed

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Giovanni Bajo
On 12/12/2008 11:20 PM, Paul A. Giannaros wrote: On Fri, Dec 12, 2008 at 9:17 PM, Marcell Mars wrote: On Fri, Dec 12, 2008 at 7:09 PM, Paul A. Giannaros 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 mai

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Giovanni Bajo
On 12/12/2008 11:18 PM, Paul A. Giannaros wrote: On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson wrote: On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" wrote: Hi all, When there was a discussion regarding PyQt wishes for Python 3.0 I proposed changing the mechanism by which you refer

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 9:17 PM, Marcell Mars wrote: > On Fri, Dec 12, 2008 at 7:09 PM, Paul A. Giannaros 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 w

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson wrote: > > On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" > wrote: > > Hi all, > > > > When there was a discussion regarding PyQt wishes for Python 3.0 I > > proposed changing the mechanism by which you refer to symbols[1] . > > Thus somethi

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Marcell Mars
On Fri, Dec 12, 2008 at 7:09 PM, Paul A. Giannaros wrote: > Any thoughts on this? do you want to do something like: import PyQt4.QtCore as Qt import PyQt4.QtGui also as Qt :) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Phil Thompson
On Fri, 12 Dec 2008 20:51:00 +0200, "Nick Shaforostoff" wrote: > 2008/12/12 Phil Thompson : > >> A class in PyQt should have the same name as the class in Qt if at all >> possible. > ever tried > > from PyQt4.QtCore import * > from PyQt4.QtGui import * > from PyQt4.QtSql import * > > ? Erm, ye

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Nick Shaforostoff
2008/12/12 Phil Thompson : > A class in PyQt should have the same name as the class in Qt if at all > possible. ever tried from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtSql import * ? ___ PyQt mailing listPyQt@riverbankcomputing

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Phil Thompson
On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" wrote: > Hi all, > > When there was a discussion regarding PyQt wishes for Python 3.0 I > proposed changing the mechanism by which you refer to symbols[1] . > Thus something like "QtGui.QApplication" could be refered to as > "Qt.Application"

[PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
Hi all, When there was a discussion regarding PyQt wishes for Python 3.0 I proposed changing the mechanism by which you refer to symbols[1] . Thus something like "QtGui.QApplication" could be refered to as "Qt.Application". As Qt does not use namespaces itself, there would be no conflicts of names