aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authortassaron2022-05-06 18:49:45 -0400
committertassaron2022-05-06 18:49:45 -0400
commit6b67ad145295eee4fa0914564b8e2a52c35172e6 (patch)
treeab5b96f4c0770705a7db93b6e4fb6cc36cee5e58 /src/components
parent640043a4584fe6273601b70cca0224f28d4712b8 (diff)
convert to f-string for readability
Diffstat (limited to 'src/components')
-rw-r--r--src/components/waveform.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/waveform.py b/src/components/waveform.py
index c726562..8c94b24 100644
--- a/src/components/waveform.py
+++ b/src/components/waveform.py
@@ -148,14 +148,10 @@ class Component(Component):
if self.mode < 3:
filter_ = (
'showwaves='
- 'r=%s:s=%sx%s:mode=%s:colors=%s@%s:scale=%s' % (
- str(self.settings.value("outputFrameRate")),
- self.settings.value("outputWidth"),
- self.settings.value("outputHeight"),
- self.page.comboBox_mode.currentText().lower()
- if self.mode != 3 else 'p2p',
- hexcolor, opacity, amplitude,
- )
+ f'r={str(self.settings.value("outputFrameRate"))}:'
+ f's={self.settings.value("outputWidth")}x{self.settings.value("outputHeight")}:'
+ f'mode={self.page.comboBox_mode.currentText().lower() if self.mode != 3 else "p2p"}:'
+ f'colors={hexcolor}@{opacity}:scale={amplitude}'
)
elif self.mode > 2:
filter_ = (