aboutsummaryrefslogtreecommitdiff
path: root/src/components/image.py
diff options
context:
space:
mode:
authortassaron2017-07-13 17:03:25 -0400
committertassaron2017-07-13 17:03:25 -0400
commit06c27a48bc3f52e15c15445d822e8a6f523ab98f (patch)
treed238a05980dddef9c76786a755de04c33028088c /src/components/image.py
parentb7931572a73d408dceecc4b17b784a0338e0e35b (diff)
more error messages for blank components
Diffstat (limited to 'src/components/image.py')
-rw-r--r--src/components/image.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/image.py b/src/components/image.py
index 6465bc9..6a70424 100644
--- a/src/components/image.py
+++ b/src/components/image.py
@@ -48,14 +48,15 @@ class Component(Component):
def properties(self):
props = ['static']
- if self.imagePath and not os.path.exists(self.imagePath):
+ if not os.path.exists(self.imagePath):
props.append('error')
return props
def error(self):
+ if not self.imagePath:
+ return "There is no image selected."
if not os.path.exists(self.imagePath):
- return "The image selected on " \
- "layer %s does not exist!" % str(self.compPos)
+ return "The image selected does not exist!"
def frameRender(self, layerNo, frameNo):
width = int(self.settings.value('outputWidth'))