python - Differentiate gtk.Entry icons -
I am adding two icons to gtk.Entry in PGT.
def Entry_icon_events (self, widget, status, event)
I'm trying to differentiate between them:
& gt; Animate GTK_ENTRY_ICON_PRIMARY type GtkEntryIconPosition & gt; & Lt; Enum GTK_ENTRY_ICON_SECONDARY type GtkEntryIconPosition & gt;
How can I do this? I'm digging through the documentation of PyGTK, but there is no GtkEntryIconPosition for any object nor has there any definition for this enums.
Thanks
A better way to do this is:
def entry_icon_events (auto, widget, icon, event): if icon == gtk.ENTRY_ICON_PRIMARY: ... alif icon == gtk.ENTRY_ICON_SECONDARY: ...
Comments
Post a Comment