On 22.04.2010 18:35, ext Mark Summerfield wrote:

I've updated the PSEP making use of your text (but slightly modified).

OK, updated the web version accordingly.

If you want two or more people to be able to edit it I think it is
easiest to do your changes and then supply the complete file with those
changes. Then anyone can diff (or use vim -d) to see exactly what the
changes are&  vice versa. (But I don't suppose it matters much since
presumably this'll soon be set in stone;-)

I learned my lesson - there were some modifications I had made to Rationale, References, and Contributors which were (accidentally?) dropped from your version. I've re-merged them now.

http://www.pyside.org/docs/pseps/psep-0101.html
http://www.pyside.org/docs/pseps/psep-0101.txt

PyQt does not integrate Python and Qt's property systems, but it does allow
Qt properties to be set when an object is constructed using keyword
arguments (i.e., where the keyword is the name of a Qt property). Also,
PyQt provides the pyqtConfigure() method for all objects that have
Qt properties: this method can be called at any time and the object's Qt
properties set by passing it keyword arguments.

While reading the document more carefully through, I noticed the mention about pyqtConfigure(). We really should find an implementation-agnostic name for it. Of course, it's better still to support pyqtConfigure() as well but we could make it throw a warning.

Another issue with pyqtConfigure is that the name is in my opionion somewhat non-descriptive and misleading: What does it configure? Is it releated to the pyqtconfig module?

Ouch. Just realized that's not the only utility function with a similar name, pyqtProperty was just taken for defining new Qt properties. These were already discussed in PSEP 100 for pyqtSignal and pyqtSlot. A quick check for PyQt 4.6 revealed these in QtCore:

pyqtProperty
pyqtRemoveInputHook
pyqtRestoreInputHook
pyqtSignal
pyqtSignature
pyqtSlot
pyqtWrapperType

(and pyqtConfigure in QObject)

Maybe it would be cleanest if we just let the pyqtConfigure name stay in PSEP 101 and make a separate PSEP for proposing implementation-agnostic names for these functions?

Cheers,

ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to