I'm writing a GPIO interface plugin that allows users to create a different device for each GPIO channel. Often it is convenient to duplicate a device and then edit it to address a different channel. I'd like to force this process rather than rely on the user because the rest of my plugin does not respond well to having two devices assigned to the same GPIO channel.
I can detect the duplicated device by calling the "deviceCreated" method and testing for "dev.configured" = True. At this point, I'd like to activate the "Edit Device" UI, but don't know how. Any suggestions?
Thanks in advance for your help.
Dave