Re: [PyQt] Making application look more sexy

2009-01-07 Thread Gustavo A. Díaz
Hi, Agree that many would like to maintain OS look and feel, is why in my application i give the user the option to set a own skin/qss style or to select the styles available in the OS. 2009/1/7 Marc Nations > That is an awesome looking app! > > In the past I've been able to overcome a lot shor

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Jim Bublitz
On Wednesday 07 January 2009 05:27:06 am Sundance wrote: > Adeodato Simó wrote: > >If you see in the middle of a program hex_(foo), you may wonder > > where that came from, whereas qhex(foo) is going to be rather > > obvious. > > Greetings all, > > Might I humbly second this motion? I do understand

[PyQt] QtSql issue

2009-01-07 Thread Brian Makin
I've just installed pyqt on an ubuntu box and many of the examples work fine. When I try to run the sql examples I get the following error. python -c "from PyQt4 import QtSql" Traceback (most recent call last): File "", line 1, in ImportError: cannot import name QtSql using QtCore or QtGui

Re: [PyQt] Making application look more sexy

2009-01-07 Thread Marc Nations
That is an awesome looking app! In the past I've been able to overcome a lot shortcomings with gui toolkits with a healthy use of images. Even when I was using TkInter and the look was extremely outdated I was able to mask it by basically replacing as much as possible with foreground and backgroun

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Sundance
Adeodato Simó wrote: >If you see in the middle of a program hex_(foo), you may wonder where >that came from, whereas qhex(foo) is going to be rather obvious. Greetings all, Might I humbly second this motion? I do understand the usual reservations about star-imports (being the kind of guy that o

[PyQt] ANN: eric4 4.2.5 available

2009-01-07 Thread Detlev Offenbach
Hi, a bug fix release of the stable eric4 line is available on http://eric-ide.python-projects.org/index.html. Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Mark Summerfield
On 2009-01-07, Chris Withers wrote: > Phil Thompson wrote: > >>> This has been discussed thousands of times and it starts getting > >>> annoying. > >> > >> Yes, it is annoying that all the example code continues to be in a form > >> that confuses users trying to learn PyQt. > > > > *None* of the Py

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Neal Becker wrote: If the pyqt examples did not use *, and if you could import a useful enough subset without doing that, I'd agree. If the suggestion is to explicitly qualify everything, I don't think that's reasonable. Yes, python, well know for believing that implicit is better than expli

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Adeodato Simó
* Giovanni Bajo [Wed, 07 Jan 2009 11:06:09 +0100]: > Appending the underscore to those symbols is a perfect fix IMO. I realize this is a matter of preference, but I'd suggest using qbin() and qhex() rather than the underscore: I think it makes more sense for stuff that can be imported into the gl

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
On mer, 2009-01-07 at 10:33 +, Chris Withers wrote: > However, like most people, I learn by example, and when the examples > contain exclusively start imports, they are much less helpful than > they could be. I don't understand you. Are you really saying that it's harder to understand that QL

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Phil Thompson wrote: This has been discussed thousands of times and it starts getting annoying. Yes, it is annoying that all the example code continues to be in a form that confuses users trying to learn PyQt. *None* of the PyQt4 examples uses star imports. Hmmm, apologies then, must have b

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Phil Thompson
On Wed, 07 Jan 2009 10:33:00 +, Chris Withers wrote: > Giovanni Bajo wrote: >> On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: >>> Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker wrote: > A bit nasty, since I see (and follow) lots of examples that sa

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Giovanni Bajo wrote: On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex. Check the Road

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: > Phil Thompson wrote: > > On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker > > wrote: > >> A bit nasty, since I see (and follow) lots of examples that say: > >> from PyQt4.QtCore import * > >> > >> This redefines the builtin hex. > > > > Che

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex. Check the Roadmap. Appending a _ just to make an unpleasant style of programming work seem