[PyKDE] Sugestions for PyQt4
Eric Jardim
ericjardim at gmail.com
Tue Mar 21 13:30:53 GMT 2006
2006/3/21, Sundance <sundance at ierne.eu.org>:
>
> I'd cast my vote in favor of a wrapper. I think we already brought up
> the idea when discussing the Qt namespace issue.
It does not have to be just a wrapper. I could be a small framework,
complementing and modifying the original PyQt.
For example: those "setEnabled()"/"isEnabled()" to just "enabled" property
could be done like this:
>>> QWidget.__get_enabled = QWidget.isEnabled
>>> QWidget.__set_enabled = QWidget.setEnabled
>>> QWidget.enabled = property(QWidget.__get_enabled, QWidget.__set_enabled)
But I still think that if we could do that QtDesigner integration (and
first, the new Signal/Slot/Property meta-object registry) is much more
important than any other "pythonicity" :)
--
Eric Jardim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060321/c4e9a494/attachment.html
More information about the PyQt
mailing list