RE: [PyQt] simpler 'connect' function

2008-01-16 Thread Peter Shinners
Pete Shinners: > Creating a method or constant for each type of signal does solve > "d" and "f", but comes at a cost. > > 1) Adds new methods or symbols that are not a part of Qt. > 2) Breaks non-qt widgets that have custom signals. > 3) Ambiguity for overloaded signals like QComboBox's "activated

RE: [PyQt] simpler 'connect' function

2008-01-16 Thread Peter Shinners
Aaron Digulla: > You're missing my point: I try to reduce the amount of typos. > If all signals in Qt were predefined constants in PyQt, then > a typo would result in "attribute not found" exceptions when > they are defined instead of volatile "doesn't work" bugs when > they are used for the first

Re: [PyQt] Please let me know, how to cross-compile?

2008-01-16 Thread David Boddie
On Wed Jan 16 09:10:50 GMT 2008, Phil Thompson wrote: > On Wednesday 16 January 2008, Park min su wrote: > > Please let me know, the method which cross-compiles the PyQt or to inform > > the document which relates to this. > > First you need to define a 'spec' file for SIP that describes all the

Re: [PyQt] How can I use QWindowsXPStyle in PyQt

2008-01-16 Thread Phil Thompson
On Wednesday 16 January 2008, GAMMAEPSILON GAMMAEPSILON wrote: > Hi, > > I want to set my application style to QWindowsXPStyle. In Qt (with C++) it > does work with app->setStyle( QWindowsXPStyle() ), in PyQt the class > QWindowsXPStyle is not available. > > In the thread Phil answered that you ca

[PyQt] How can I use QWindowsXPStyle in PyQt

2008-01-16 Thread GAMMAEPSILON GAMMAEPSILON
Hi, I want to set my application style to QWindowsXPStyle. In Qt (with C++) it does work with app->setStyle( QWindowsXPStyle() ), in PyQt the class QWindowsXPStyle is not available. In the thread Phil answered that you can use plugins. How does it work exactly? Is there any example or any tut

Re: [PyQt] Please let me know, how to cross-compile?

2008-01-16 Thread Phil Thompson
On Wednesday 16 January 2008, Park min su wrote: > Dear, PyQt users. > I am having an interest in the PyQt. > i wants porting the PyQt in my target platform. > But the pyqt, it appears not to be supporting the cross-compile depending > characteristic because of the x11. > So, Me the pyqt the cross-

Re: [PyQt] simpler 'connect' function

2008-01-16 Thread Jim Bublitz
Just jumping in on the thread here,not replying to anyone in particular. I modified (polite word for "hacked up") an example program written by Troy Melhase for PyKDE3, and what he had done was kind of interesting, I thought: sigClicked = SIGNAL ("clicked ()") class MainWindow (KMainWindow):

RE: [PyQt] simpler 'connect' function

2008-01-16 Thread Aaron Digulla
Quoting Peter Shinners <[EMAIL PROTECTED]>: That's why I'm against string literals in an API. If that API doesn't even offer any checks to string literals, that's even worse. I'd be against using constants to define the signals. What type of value is going to match things like "const QString&"