View Single Post
Old 06-30-2012, 04:49 PM   #28
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@agama - another way if the import is an issue is that your InterfaceAction class has a property on it called .interface_action_base_plugin which refers to that class.

So either:
- you are in the interface action class, in which case you can use:
Code:
self.interface_action_base_plugin.version
- you are in some other class. You can either pass through your plugin action instance to it to do the above trick, or get the interface action by passing the "self.gui" to that class and then:
Code:
plugin_action = gui.iactions['My Plugin Name']
plugin_action.interface_action_base_plugin.version
kiwidude is offline   Reply With Quote