Differentiate gtk.Entry icons

Posted by Ubersoldat on Stack Overflow See other posts from Stack Overflow or by Ubersoldat
Published on 2010-02-03T10:26:12Z Indexed on 2010/03/13 14:25 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

I'm adding two icons to a gtk.Entry in PyGTK. The icons signals are handled by the following method

def entry_icon_event(self, widget, position, event)

I'm trying to differentiate between the two of them:

<enum GTK_ENTRY_ICON_PRIMARY of type GtkEntryIconPosition>
<enum GTK_ENTRY_ICON_SECONDARY of type GtkEntryIconPosition>

How can I do this? I've been digging through the documentation of PyGTK but there's no object GtkEntryIconPosition nor any definition for this enums.

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about pygtk