I have in the following example two classes, one eg.PluginClass and one object class. I want to set a variable value (myCounter) in the object class and be able to use it in the PluginClass. How would you write it in python "as professional" as possible? Without using global variables. Hope you understand...
Thanks in advance, Walter
Code: Select all
class Device(eg.PluginClass):
def ReadCounter(self):
value = myCounter
class Counter(object):
def Configure(self):
myCounter = 5