Showing Plugin config dialog from __init__

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
HomeAutomationPlugins.com
Posts: 41
Joined: Sat Feb 18, 2012 12:38 pm

Showing Plugin config dialog from __init__

Post by HomeAutomationPlugins.com »

Hi,

I'd like to show the plugin config dialog when my plugin is enabled from within in __init__ function if a condition is met - is this possible?

Here's the code:

Code: Select all

	def __init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs):
		indigo.PluginBase.__init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs)
		self.debug = True
		self.lightwaveRfUdpPort = 9760
		
		if not self.pluginPrefs.has_key("verboseDebug"):
			** SHOW THE DIALOG HERE ** 
Thanks!
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Showing Plugin config dialog from __init__

Post by jay (support) »

Not possible. Plugins run in a completely separate process than the Mac Client which shows all UI (and, the Indigo server for that matter). So the Mac client must drive when UI is displayed because it has to query the server which then queries the plugin process for the UI.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
HomeAutomationPlugins.com
Posts: 41
Joined: Sat Feb 18, 2012 12:38 pm

Re: Showing Plugin config dialog from __init__

Post by HomeAutomationPlugins.com »

Understood! :-)
Locked

Return to “Extending Indigo with Plugins and Python”