[PyQt] License question...

2008-01-10 Thread Laurent Dufrechou
Hello, I've recently done a little widget and a little app for IPython for the Wx toolkit. I've released it under BSD license. Now I would like to port it to QT. If possible I would like to avoid GPL because professional user will not be able to use it (they would prefer LGPL for example). Is B

Re: [PyQt] simpler 'connect' function

2008-01-10 Thread Phil Thompson
On Thursday 10 January 2008, Peter Shinners wrote: > I'm sure this has come up, but as I write my Pyqt code, I keep noticing > that the QObject.connect call feels like a wart. Is there already a pyqt > shortcut for a call like this? > > QtCore.QObject.connect(myButton, QtCore.SIGNAL("clicked()"

Re: [PyQt] simpler 'connect' function

2008-01-10 Thread Henrik Pauli
I'm not sure how accepted that approach is, but I personally really didn't like having to say QtGui and QtCore all the time, so I "from ... import *"-ed those. This makes a connect a couple words shorter and a lot less hideous. On Jan 10, 2008 6:26 PM, Peter Shinners <[EMAIL PROTECTED]> wrote: >

[PyQt] simpler 'connect' function

2008-01-10 Thread Peter Shinners
I'm sure this has come up, but as I write my Pyqt code, I keep noticing that the QObject.connect call feels like a wart. Is there already a pyqt shortcut for a call like this? QtCore.QObject.connect(myButton, QtCore.SIGNAL("clicked()"), onClicked) The closer I could be to something like the

[PyQt] pyqt and pycon

2008-01-10 Thread Kerri Reno
I was really hoping that there would be some pyqt sessions (or tutorials) at PyCon2008. -- Yuma Educational Computer Consortium Compass Development Team Kerri Reno [EMAIL PROTECTED] (928) 502-4240 .·:*¨¨*:·. .·:*¨¨*:·. .·:*¨¨*:·. ___ PyQt maili

Re: [PyQt] PyQt book: problem with database example

2008-01-10 Thread Mark Summerfield
On 2008-01-10, Phil Thompson wrote: > On Thursday 10 January 2008, Mark Summerfield wrote: > > On 2008-01-09, Sibylle Koczian wrote: > > > Hello, [snip] > > > - After leaving the application I get the error message > > > "QSqlDatabasePrivate::removeDatabase: connection > > > 'qt_sql_default_connect

RE: [PyQt] treeView doing my head in

2008-01-10 Thread Rupert Thorpe
ok, i need to use a QItemSelectionModel apparently... From: [EMAIL PROTECTED] To: pyqt@riverbankcomputing.com Date: Thu, 10 Jan 2008 11:58:54 + Subject: [PyQt] treeView doing my head in I think i must have some fundamental miss-understanding. i have a treeview full of stuff, any i w

Re: [PyQt] PyQt book: problem with database example

2008-01-10 Thread Phil Thompson
On Thursday 10 January 2008, Mark Summerfield wrote: > On 2008-01-09, Sibylle Koczian wrote: > > Hello, > > > > the assetmanager.pyw example doesn't seem to work correctly, or I'm using > > it wrongly: > > > > - The logs view always shows one empty line after the records > > belonging to the select

Re: [PyQt] Null dates in QDateEdit

2008-01-10 Thread David Douard
On Thu, Jan 10, 2008 at 12:52:36PM +0100, Hans-Peter Jansen wrote: > Am Donnerstag, 10. Januar 2008 schrieb Catriona Johnson: > > Hello > > I am new to PyQT and would appreciate help with the following problem. > > I have a database table that has, amongst other fields, a nullable > > date - EndDat

Re: [PyQt] SIP newbie question (%MethodCode oddity)

2008-01-10 Thread Phil Thompson
On Tuesday 08 January 2008, Jim Crowell wrote: > Hi all, > > I'm fiddling with SIP 4.7.3 on XP for a non-Qt-related project. As a > learning exercise I tried porting the Fraction example at > to SIP 4. Got it working > to a first approximation, but ther

[PyQt] treeView doing my head in

2008-01-10 Thread Rupert Thorpe
I think i must have some fundamental miss-understanding. i have a treeview full of stuff, any i want users to be able to select nodes and do stuff with them. ok, originally i was going to make the items checkable since that how i have done this befor with QT3 and it was really easy. I have be

Re: [PyQt] Null dates in QDateEdit

2008-01-10 Thread Hans-Peter Jansen
Am Donnerstag, 10. Januar 2008 schrieb Catriona Johnson: > Hello > I am new to PyQT and would appreciate help with the following problem. > I have a database table that has, amongst other fields, a nullable > date - EndDate. On my form I have a QDateEdit widget which I only want > to show a value i

Re: [PyQt] PyQt book: problem with database example

2008-01-10 Thread Mark Summerfield
On 2008-01-09, Sibylle Koczian wrote: > Hello, > > the assetmanager.pyw example doesn't seem to work correctly, or I'm using > it wrongly: > > - The logs view always shows one empty line after the records > belonging to the selected asset. Why? When I try to write such a > master-detail dialog myse

Re: [PyQt] Is the result of SIGNAL() a constant?

2008-01-10 Thread Phil Thompson
On Wednesday 09 January 2008, nytmyn wrote: > I've played with signals and slots in PyQt about 2 month ago and came to > this: > - Qt signals added to Qt classes with names as in qt, implemented using > __get__ protocol, > so calls like connect(w.signal, w.slot) are possible > - overloaded signals