diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2017-01-31 22:56:00 +0100 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2017-01-31 22:56:00 +0100 |
commit | b66d7b2d653f65a318d67b413d8680123bf14b25 (patch) | |
tree | 43809104c5fed1eb4ac041991dd1d47aa9f37f38 /voctogui | |
parent | 5516fdee86fe0ffcd34381985ebe798f9fbda1af (diff) |
Minor PEP8 fixes
Diffstat (limited to 'voctogui')
-rw-r--r-- | voctogui/lib/ui.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/voctogui/lib/ui.py b/voctogui/lib/ui.py index a8fb6a9..63f6c33 100644 --- a/voctogui/lib/ui.py +++ b/voctogui/lib/ui.py @@ -61,10 +61,12 @@ class Ui(UiBuilder): # check if there is a fixed audio source configured. # if so, remove the combo-box entirely instead of setting it up. if Config.has_option('mix', 'audiosource'): - drawing_area.remove(self.find_widget_recursive(self.win, 'box_audio')) + box_audio = self.find_widget_recursive(self.win, 'box_audio') + drawing_area.remove(box_audio) else: + combo_audio = self.find_widget_recursive(self.win, 'combo_audio') self.audio_selector_controller = AudioSelectorController( - drawing_area=self.find_widget_recursive(self.win, 'combo_audio'), + drawing_area=combo_audio, win=self.win, uibuilder=self ) |