diff options
| author | tassaron | 2017-07-13 17:03:25 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-13 17:03:25 -0400 |
| commit | 06c27a48bc3f52e15c15445d822e8a6f523ab98f (patch) | |
| tree | d238a05980dddef9c76786a755de04c33028088c /src/components/text.py | |
| parent | b7931572a73d408dceecc4b17b784a0338e0e35b (diff) | |
more error messages for blank components
Diffstat (limited to 'src/components/text.py')
| -rw-r--r-- | src/components/text.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/text.py b/src/components/text.py index 4435b80..c52bdc5 100644 --- a/src/components/text.py +++ b/src/components/text.py @@ -121,7 +121,13 @@ class Component(Component): return self.addText(width, height) def properties(self): - return ['static'] + props = ['static'] + if not self.title: + props.append('error') + return props + + def error(self): + return "No text provided." def frameRender(self, layerNo, frameNo): width = int(self.settings.value('outputWidth')) |
