From: Nikita Zlobin Date: Tue, 28 Dec 2010 16:07:05 +0000 (+0500) Subject: Fix blinking X-Git-Url: https://repo.or.cz/w/jack_freewheel_button.git/commitdiff_plain/6b70cd55c5844e34c2835089a358c465a12b0090 Fix blinking --- diff --git a/jack_freewheel_button b/jack_freewheel_button old mode 100644 new mode 100755 index d3ac65c..82761f1 --- a/jack_freewheel_button +++ b/jack_freewheel_button @@ -70,14 +70,14 @@ def blink_toggle(): global blink_state if blink_state: - button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('darkorange')) - button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('darkorange')) - b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('lightyellow')) - blink_state = False - else: button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('brown')) button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('brown')) b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('pink')) + blink_state = False + else: + button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('darkorange')) + button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('darkorange')) + b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('lightyellow')) blink_state = True return True