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)