Skip to content

Commit

Permalink
Update linux_colorpicker.py
Browse files Browse the repository at this point in the history
Fixes issue #73
  • Loading branch information
tonjo committed Apr 16, 2015
1 parent fac4528 commit 565b21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linux_colorpicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit 565b21f

@kahlil29
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I wanted to use gtk for a simple GUI for my plugin for a comment thread.
Could you give me a basic explanation on how the linux_colorpicker.py file is called and from where and how does it run immediately when you press "Ctrl + Shift + c" ?
Also, weirdly enough, if i try to import gtk from my main plugin.py file it gives me an import error. But when gtk is imported from the linux_colorpicker.py file, it runs fine. Wanted to know why. Thanks

Please sign in to comment.