diff options
| author | tassaron | 2022-04-29 21:15:17 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-29 21:15:17 -0400 |
| commit | c2c3f0aa5adf3127b84b3d50da9e1aa655c8a824 (patch) | |
| tree | aa4593c53378e376e849799ee7cea23707aff4ec /src/components/waveform.py | |
| parent | 6f7b3b5f7cb72d09b2b86bd58b2e526515739590 (diff) | |
remove extra window properties from window objects
instead of windows with properties which are windows, windows now have the UI added directly to them using an argument of `uic.loadUi`
Also, DPI scaling moved to MainWindow __init__
Diffstat (limited to 'src/components/waveform.py')
| -rw-r--r-- | src/components/waveform.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/waveform.py b/src/components/waveform.py index 1a6035f..227f711 100644 --- a/src/components/waveform.py +++ b/src/components/waveform.py @@ -27,8 +27,8 @@ class Component(Component): self.page.lineEdit_color.setText('255,255,255') - if hasattr(self.parent, 'window'): - self.parent.window.lineEdit_audioFile.textChanged.connect( + if hasattr(self.parent, 'lineEdit_audioFile'): + self.parent.lineEdit_audioFile.textChanged.connect( self.update ) @@ -82,7 +82,7 @@ class Component(Component): genericPreview = self.settings.value("pref_genericPreview") startPt = 0 if not genericPreview: - inputFile = self.parent.window.lineEdit_audioFile.text() + inputFile = self.parent.lineEdit_audioFile.text() if not inputFile or not os.path.exists(inputFile): return duration = getAudioDuration(inputFile) |
