QGIS custom action and button toggle

المشرف العام

Administrator
طاقم الإدارة
I've added a custom toolbar with some buttons to my QGIS 2 plugin. I'm wondering how to get the button toggled (pushed in-looking effect) using Python. I've gotten this to work for existing buttons like so:

iface.actionAddFeature().trigger()I can't seem to figure out how to apply it to my own actions and buttons.



أكثر...
 
أعلى