From 565b21f72b257eecb5192867392ce40c68e4ca82 Mon Sep 17 00:00:00 2001 From: tonjo Date: Thu, 16 Apr 2015 19:32:59 +0200 Subject: [PATCH] Update linux_colorpicker.py Fixes issue #73 --- lib/linux_colorpicker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linux_colorpicker.py b/lib/linux_colorpicker.py index 25ab20f..4d52c4c 100644 --- a/lib/linux_colorpicker.py +++ b/lib/linux_colorpicker.py @@ -23,7 +23,7 @@ color_sel.get_color_selection().set_current_color(current_color) -if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.Ok): +if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.OK): color = color_sel.get_color_selection().get_current_color() #Convert to 8bit channels red = int(color.red / 256)