[Qgis-user] How can I call pluginA from pluginB?
荻原
pushbonx at gmail.com
Tue Apr 19 20:02:11 PDT 2016
Hi John
Hi Luigi
Thank you very much for good answers
I finally got it
before sending mail,
I tried that:
[in pluginA source code]
testPluginB = pluginB(iface)
testPluginB.run()
but window is not opened... I was stuck
in reference to your answers,
I tried that:
[in pluginA source code]
testPluginB = utils.plugins['pluginBClass']
testPluginB.run()
OK!!yeehaw!
I've learned that I can call other plugins In such a way that calling
pluginClassName using utils.plugins
It's very simple.
I sincerely thank you for your polite and thorough answers
2016-04-19 20:12 GMT+09:00 Luigi Pirelli <luipir at gmail.com>:
> hi Ryo
>
> remember that python plugins simply are python modules => import your
> plugin PluginB and instantiate or get it's instance from
> qgis.utils.plugins dictionary
>
> regards
> Luigi Pirelli
>
> **************************************************************************************************
> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Mastering QGIS:
> https://www.packtpub.com/application-development/mastering-qgis
> **************************************************************************************************
>
>
> On 19 April 2016 at 12:47, 荻原 <pushbonx at gmail.com> wrote:
>> Hi!
>> I would like to ask a question how to call different plugin from a plugin.
>>
>> I made two plugin using plugin builder .
>>
>> when I want to use plugin, I click plugin Icon in toolbar or menu,and
>> the main window open.
>> (That plugin is dockwidget plugin)
>>
>> I would like to do that from plugin.
>> when I click one button in pluginA , pluginB Main Window Open,That's it.
>>
>> If anyone know that solution, please help me .
>> thank you for reading my question.
>>
>> Ryo Ogiwara
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list