#31 Added **self.use_pre_load:bool = False** and pre_load() method.
This commit is contained in:
@@ -13,6 +13,8 @@ class ExamplePlugin(XtendRBase):
|
|||||||
>>> plugin.stop()
|
>>> plugin.stop()
|
||||||
ExamplePlugin has stopped!
|
ExamplePlugin has stopped!
|
||||||
"""
|
"""
|
||||||
|
self.use_pre_load:bool = False #Indicate that pre-loading isn't neccessary
|
||||||
|
|
||||||
def run(self, *args, **kwargs):
|
def run(self, *args, **kwargs):
|
||||||
arglen = len(args)
|
arglen = len(args)
|
||||||
keylen = len(kwargs)
|
keylen = len(kwargs)
|
||||||
@@ -31,3 +33,6 @@ class ExamplePlugin(XtendRBase):
|
|||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
print("ExamplePlugin has stopped!")
|
print("ExamplePlugin has stopped!")
|
||||||
|
|
||||||
|
def pre_load(self):
|
||||||
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user