Hi! Is it possible to get the instance of the main plugin’s class from outside of it (within the same code)?
class MyPlugin(GeneralPlugin):
def method(self):
print("hello")
class AnotherClass():
def anotherMethod(self):
myPluginInstance.method() # how to get myPluginInstance?
Normally, an object should encapsulate functionally so that it doesn’t need access to outside stuff.
So maybe move def method(self): to the other class.