Code: Select all
class MyPlugin(eg.PluginClass):
def __init__(self):
self.AddAction(myAction)
def __start__(self,myPluginVarFromConfigure):
self.myPluginVarFromConfigure=myPluginVarFromConfigure
class myAction(eg.ActionClass):
def __call__(self, myActionVarFromConfigure):
self.myActionVarFromConfigure=myActionVarFromConfigure
self.other=Other(self)
class myOtherAction(eg.ActionClass):
def __call__(self, myOtherActionVarFromConfigure):
self.myOtherActionVarFromConfigure=myOtherActionVarFromConfigure
class Other():
def __init__(self):
self.myOtherVar="test"If I'd like to access myPluginVarFromConfigure in myAction I'd use self.plugin.myPluginVarFromConfigure. How do I access myPluginVarFromConfigure from within Other?
Is it true, that to access myOtherVar from within myAction I'd use self.other.myOtherVar?
And most important how do I access myOtherActionVarFromConfigure from within myAction?