In the plug in I have a class DeviceCT for definition of counter objects. The user can set the counter number (1 or 2) and a counter limit for each (from 1 and up).
The class definition looks like this
- Code: Select all
def Configure(self, ct = 1, ctl = 5):
nbr_list = 
for i in range(255):
panel = eg.ConfigPanel(self)
ctr_ctrl = panel.Choice(ct, choices=['', '1', '2'])
ctr_limit = panel.Choice(ctl, choices=nbr_list)
panel.AddLine("Counter limit", ctr_limit)
My problem is how I can read the configured values from anywhere in the plug-in code (like from code inside another class or in my case a thread). How can I read the actual values from ctr_ctrl and ctr_limit above? Do I have to make them eg.globals or is there a more clever way?
Thanks in advance, Walter