[PyKDE] Connect syntax.
Bryan O'Sullivan
bos at serpentine.com
Thu Sep 23 17:02:47 BST 2004
On Thu, 2004-09-23 at 15:30 +0200, Sundance wrote:
> Oh, it was just an idea about allowing this syntax:
> someButton.connect(SIGNAL("clicked()"), otherObject.someMethod)
>
> IE, making the first argument implicit when connect() is used as an
> instance method. Which seems a LOT more logical and pythonic. However,
> as Phil points out, it doesn't respect the Qt API.
What's wrong with not respecting the Qt API? Seriously, it's got some
ugly non-Pythonic warts, such as the syntax for QObject.connect and
QObject.emit, and the horrible mechanism for sorting columns of
QListViewItem objects.
<b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyqt.py
Type: application/x-python
Size: 1429 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20040923/37d6a923/pyqt.bin
More information about the PyQt
mailing list