[pygtk] Re:Help with choosing a widget

kani . jkani4 at gmail.com
Wed Mar 12 12:32:55 WST 2008


Hi,
If my post is not posted to the correct thread, I'm sorry because I
don't know how to reply to the archived post.(I joined this ML
yesterday)

>Subject: [pygtk] Help with choosing a widget
>Message-ID: <47D1252E.3050100 �� atlas.cz>

>Also I'm not sure, but it seems to me, that gtk.Frame can't receive
>clicks. I need to receive clicks on the videos a highlight the clicked
>one. Is gtk.Frame the right widget for me? Or should I use something
>different? Is it possible to set a background picture for widgets like
>gtk.HBox or gtk.Eventbox?

Yes gkt.Frame can not receive 'click' signal because it does not have
own window.
To receive 'click' signal, you make the frame widget to the child of
gtk.EventBox.

In other way, Please try following:
1. Connect to the 'event' signal of gtk.Frame.
3. In the signal handler function, write your code that execute when
event.type is gtk.gdk.BUTTON_PRESS.

best regards.


More information about the pygtk mailing list