Quote:
Originally Posted by kovidgoyal
iactions['action name].add_to_skoob.trigger()
|
That's exactly what I was expecting!
I've tried some combinations of this but nothing worked.
For example, I can use this:
Code:
gui.iactions.['Skoob Sync'].rebuild_menus()
'Skoob Sync' referes to the IntefacePlugin.
But when I try to call other actions, it gives me a KeyError:
Code:
gui.iactions['SkoobSync_Add'].add_to_skoob.trigger()
KeyError: 'SkoobSync_Add'
'SkoobSync_Add' is the unique name for the action.
________________________________
Edit
Never mind, I got it. I was trying to use the actions unique name, when I should use the plugin's combined with the actions.
This works perfectly:
Code:
gui.iactions['Skoob Sync'].add_to_skoob.trigger()
Thank you for the help!