diff options
| author | tassaron | 2017-05-30 19:31:10 -0400 |
|---|---|---|
| committer | tassaron | 2017-05-30 19:31:10 -0400 |
| commit | ca7e8bdb0dc998088aeb45a77987a78cc4656b34 (patch) | |
| tree | 8f41e662740fcbb17dd2a38b5af6764429fd8a77 /components/__base__.py | |
| parent | 7240f25deb21db365f39d00c50eb07d41dc4c797 (diff) | |
the most simple way of saving dictionaries
Diffstat (limited to 'components/__base__.py')
| -rw-r--r-- | components/__base__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/__base__.py b/components/__base__.py index 87440bb..252ad03 100644 --- a/components/__base__.py +++ b/components/__base__.py @@ -3,6 +3,9 @@ from PyQt4 import QtGui class Component: def __str__(self): return self.__doc__ + + def version(self): + return 1 def preFrameRender(self, **kwargs): for kwarg, value in kwargs.items(): @@ -54,4 +57,8 @@ class Component: height = int(self.worker.core.settings.value('outputHeight')) image = Image.new("RGBA", (width, height), (0,0,0,0)) return image + + def version(self): + # change this number to identify new versions of your component + return 1 ''' |
