[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Why doesn't pyqtProperty have a name attribute like pyqtSlot?
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2017-08-09 17:35:13
Message-ID: E66DFB3E-BEC2-48F8-BB0E-3F2474D7BEAF () riverbankcomputing ! com
[Download RAW message or body]

On 9 Aug 2017, at 5:28 pm, James Stearns - NOAA Affiliate <james.stearns@noaa.gov> \
wrote:
> 
> @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?

Nobody has ever asked for it. However I'm not sure that giving something two \
different names just to follow different naming conventions is a good idea.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic