From 46b404120fd99a58e8954ab50aaa7b81659e144e Mon Sep 17 00:00:00 2001 From: Scott Lawson Date: Sun, 1 Jan 2017 13:12:38 -0700 Subject: [PATCH] Fixed bug where ComboBox didn't match current effect Fixed a bug where the GUI ComboBox value would sometimes not match the effect being displayed. This bug sometimes occurs when the GUI is first initialized. This change now ensures that the ComboBox value is correctly initialized. --- python/visualization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/visualization.py b/python/visualization.py index 0047efc..df0a1c3 100644 --- a/python/visualization.py +++ b/python/visualization.py @@ -277,6 +277,7 @@ if __name__ == '__main__': def effect_change(): global visualization_effect visualization_effect = effect_combobox.value() + effect_combobox.setValue(visualization_effect) effect_combobox.currentIndexChanged.connect(effect_change) GUI.layout.addWidget(effect_combobox) # Initialize LEDs