[PyQt] Why doesn't pyqtProperty have a name attribute like pyqtSlot?

James Stearns - NOAA Affiliate james.stearns at noaa.gov
Wed Aug 9 17:28:03 BST 2017


@pyqtSlot has a name attribute that can be used to define a PyQt name
following the JavaScript function name convention while allowing the
implementing python method's name to follow PEP8. For example:

@pyqtSlot(name='deleteItem')
def delete_item(self):


@pyqtProperty doesn't have a name attribute. There's got to be a reason why
it doesn't. I looked in the PyQt archive and didn't see one.

Why doesn't @pyqtProperty have a name attribute?

Thanks,

Jim Stearns

Software Engineer, NOAA Affiliate
Earth Resources Technology, Inc. (ERT, Inc)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170809/1b33ca74/attachment.html>


More information about the PyQt mailing list