aboutsummaryrefslogtreecommitdiff
path: root/src/components/image.py
diff options
context:
space:
mode:
authortassaron2017-07-02 21:38:19 -0400
committertassaron2017-07-02 21:38:19 -0400
commit3a6d7ae421ad2b650cac7f17d43be313787f0e61 (patch)
tree1788ad881bb621d6d3bc2962d3d8b65e9f952522 /src/components/image.py
parent0da275bf1b1dd2c956fed9d4a1051dcf3365c382 (diff)
frame-drawing tools for components to share
Diffstat (limited to 'src/components/image.py')
-rw-r--r--src/components/image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/image.py b/src/components/image.py
index ba99113..1aae51b 100644
--- a/src/components/image.py
+++ b/src/components/image.py
@@ -3,6 +3,7 @@ from PyQt5 import QtGui, QtCore, QtWidgets
import os
from component import Component
+from frame import BlankFrame
class Component(Component):
@@ -53,7 +54,7 @@ class Component(Component):
return self.drawFrame(width, height)
def drawFrame(self, width, height):
- frame = self.blankFrame(width, height)
+ frame = BlankFrame(width, height)
if self.imagePath and os.path.exists(self.imagePath):
image = Image.open(self.imagePath)
if self.stretched and image.size != (width, height):