Hi Joe,
I think you want to have the following routine (or similar):
- Code: Select all
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# This routine returns the UI values for the device configuration screen prior to it
# being shown to the user; it is sometimes used to setup default values at runtime
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
def getDeviceConfigUiValues(self, pluginProps, typeId, devId):
self.debugLogWithLineNum(u'Called getDeviceConfigUiValues(self, pluginProps, typeId, devId):')
if self.logMethodParams == True:
self.debugLogWithLineNum(u' (' + unicode(pluginProps) + u', ' + unicode(typeId) + u', ' + unicode(devId) + u')')
return super(Plugin, self).getDeviceConfigUiValues(pluginProps, typeId, devId)
This extract lifted from the
Plugin Developer Documenter plugin which Adam (RogueProeliator) produced.
If you haven't done so already, I highly recommend downloading it and investigating the code - it is very helpful for plugin developers.