From b66d7b2d653f65a318d67b413d8680123bf14b25 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Tue, 31 Jan 2017 22:56:00 +0100 Subject: Minor PEP8 fixes --- voctogui/lib/ui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'voctogui') 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 ) -- cgit v1.2.3