diff options
| author | tassaron | 2017-05-28 14:19:28 -0400 |
|---|---|---|
| committer | tassaron | 2017-05-28 14:19:28 -0400 |
| commit | e0eed5bff4316910a93937d904f1a913f365a252 (patch) | |
| tree | 5ed9ebe270c5bde6ca716916e15c7720e75cce38 /preview_thread.py | |
| parent | d9a5f2dd34c0bf14bfc99b58183b00d43217d889 (diff) | |
title text is now a component
plus numerous bugs removed and added
Diffstat (limited to 'preview_thread.py')
| -rw-r--r-- | preview_thread.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/preview_thread.py b/preview_thread.py index 7a7e619..b20e9a1 100644 --- a/preview_thread.py +++ b/preview_thread.py @@ -55,11 +55,9 @@ class Worker(QtCore.QObject): frame = Image.new("RGBA", (width, height),(0,0,0,255)) frame.paste(im) - - componentWidgets = [self.stackedWidget.widget(i) for i in range(self.stackedWidget.count())] components = nextPreviewInformation["components"] - for component, componentWidget in zip(components, componentWidgets): - newFrame = Image.alpha_composite(frame,component.previewRender(self, componentWidget)) + for component in components: + newFrame = Image.alpha_composite(frame,component.previewRender(self)) frame = Image.alpha_composite(frame,newFrame) self._image = ImageQt(frame) |
