aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authortassaron2017-08-19 18:32:12 -0400
committertassaron2017-08-19 18:32:12 -0400
commitc07f2426ceeada205fdacbfba66329179a74a1dc (patch)
treeff69455b1cec3cff36cf2c4edeae93cd8600649d /src/components
parent87e762a8aa3fa97a3d43a18c59098b287bb95506 (diff)
fixed issues with undoing relative widgets
Diffstat (limited to 'src/components')
-rw-r--r--src/components/color.py2
-rw-r--r--src/components/image.py2
-rw-r--r--src/components/life.py1
-rw-r--r--src/components/sound.py1
-rw-r--r--src/components/spectrum.py4
-rw-r--r--src/components/text.py1
-rw-r--r--src/components/video.py2
-rw-r--r--src/components/waveform.py2
8 files changed, 2 insertions, 13 deletions
diff --git a/src/components/color.py b/src/components/color.py
index d09cee8..a55aa10 100644
--- a/src/components/color.py
+++ b/src/components/color.py
@@ -82,8 +82,6 @@ class Component(Component):
self.page.pushButton_color2.setEnabled(False)
self.page.fillWidget.setCurrentIndex(fillType)
- super().update()
-
def previewRender(self):
return self.drawFrame(self.width, self.height)
diff --git a/src/components/image.py b/src/components/image.py
index 63bee1a..c57b69c 100644
--- a/src/components/image.py
+++ b/src/components/image.py
@@ -84,7 +84,6 @@ class Component(Component):
if filename:
self.settings.setValue("componentDir", os.path.dirname(filename))
self.page.lineEdit_image.setText(filename)
- self.update()
def command(self, arg):
if '=' in arg:
@@ -123,4 +122,3 @@ class Component(Component):
else:
scaleBox.setVisible(True)
stretchScaleBox.setVisible(False)
- super().update()
diff --git a/src/components/life.py b/src/components/life.py
index 2383d30..76d2c5f 100644
--- a/src/components/life.py
+++ b/src/components/life.py
@@ -53,7 +53,6 @@ class Component(Component):
if filename:
self.settings.setValue("componentDir", os.path.dirname(filename))
self.page.lineEdit_image.setText(filename)
- self.update()
def shiftGrid(self, d):
def newGrid(Xchange, Ychange):
diff --git a/src/components/sound.py b/src/components/sound.py
index 26ecf93..b86f40c 100644
--- a/src/components/sound.py
+++ b/src/components/sound.py
@@ -53,7 +53,6 @@ class Component(Component):
if filename:
self.settings.setValue("componentDir", os.path.dirname(filename))
self.page.lineEdit_sound.setText(filename)
- self.update()
def commandHelp(self):
print('Path to audio file:\n path=/filepath/to/sound.ogg')
diff --git a/src/components/spectrum.py b/src/components/spectrum.py
index 89130a2..2b98dc2 100644
--- a/src/components/spectrum.py
+++ b/src/components/spectrum.py
@@ -76,8 +76,6 @@ class Component(Component):
else:
self.page.checkBox_mono.setEnabled(True)
- super().update()
-
def previewRender(self):
changedSize = self.updateChunksize()
if not changedSize \
@@ -138,7 +136,7 @@ class Component(Component):
'-r', self.settings.value("outputFrameRate"),
'-ss', "{0:.3f}".format(startPt),
'-i',
- os.path.join(self.core.wd, 'background.png')
+ self.core.junkStream
if genericPreview else inputFile,
'-f', 'image2pipe',
'-pix_fmt', 'rgba',
diff --git a/src/components/text.py b/src/components/text.py
index d3afd5c..92f0599 100644
--- a/src/components/text.py
+++ b/src/components/text.py
@@ -68,7 +68,6 @@ class Component(Component):
self.page.spinBox_shadY.setHidden(True)
self.page.label_shadBlur.setHidden(True)
self.page.spinBox_shadBlur.setHidden(True)
- super().update()
def centerXY(self):
self.setRelativeWidget('xPosition', 0.5)
diff --git a/src/components/video.py b/src/components/video.py
index a189f60..9c0d608 100644
--- a/src/components/video.py
+++ b/src/components/video.py
@@ -52,7 +52,6 @@ class Component(Component):
else:
self.page.label_volume.setEnabled(False)
self.page.spinBox_volume.setEnabled(False)
- super().update()
def previewRender(self):
self.updateChunksize()
@@ -119,7 +118,6 @@ class Component(Component):
if filename:
self.settings.setValue("componentDir", os.path.dirname(filename))
self.page.lineEdit_video.setText(filename)
- self.update()
def getPreviewFrame(self, width, height):
if not self.videoPath or not os.path.exists(self.videoPath):
diff --git a/src/components/waveform.py b/src/components/waveform.py
index 0743e55..5c02bbf 100644
--- a/src/components/waveform.py
+++ b/src/components/waveform.py
@@ -98,7 +98,7 @@ class Component(Component):
'-r', self.settings.value("outputFrameRate"),
'-ss', "{0:.3f}".format(startPt),
'-i',
- os.path.join(self.core.wd, 'background.png')
+ self.core.junkStream
if genericPreview else inputFile,
'-f', 'image2pipe',
'-pix_fmt', 'rgba',