You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Qgis api 2.5 documentation reports for class QAction these new methods:
iconPath()
icon()
but these methods in 2.5.0-Master. are not visible from python:
If you run this command line from console on a current layer having actions:
dir(iface.mapCanvas().currentLayer().actions().listActions()[0])
you get:
['ActionType', 'Generic', 'GenericPython', 'Mac', 'OpenUrl', 'Unix', 'Windows', 'class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', 'action', 'capture', 'name', 'runable', 'type']
in where you can't find icon() and iconPath()
The text was updated successfully, but these errors were encountered:
Author Name: enrico ferreguti (@enricofer)
Original Redmine Issue: 11458
Affected QGIS version: master
Redmine category:python_plugins
Qgis api 2.5 documentation reports for class QAction these new methods:
iconPath()
icon()
but these methods in 2.5.0-Master. are not visible from python:
If you run this command line from console on a current layer having actions:
dir(iface.mapCanvas().currentLayer().actions().listActions()[0])
you get:
['ActionType', 'Generic', 'GenericPython', 'Mac', 'OpenUrl', 'Unix', 'Windows', 'class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', 'action', 'capture', 'name', 'runable', 'type']
in where you can't find icon() and iconPath()
The text was updated successfully, but these errors were encountered: