[pygtk] clickable label and Fixed container

John Finlay finlay at moeraki.com
Thu Jul 28 17:37:54 WST 2005


Axel R. wrote:

>Hi all,
>I would like click on a label who is put on a Fixed container - I've put an
>image on this Fixed to do something like this :
>http://www.cursodeesperanto.com.br/fr/ekrano1.jpg
>I've found that I can't connect a signal on a label and I have to use a eventBox
>to do this.
>But now, I've 2 problems :
>- The EventBox have a gray background and I see a gray area around my label :-(
>Is it possible to make it transparent ?
>  
>
EventBox.set_visible_window(False)

>- When I put my mouse on the eventBox, I would like to see a "hand" cursor, I've
>try to do something like eventBox.window.set_cursor but the eventBox.window is
>"None" type. So, how change the cursor.
>  
>
The eventBox and its parent widgets have to be shown before the 
eventBox.window is created. Try setting the cursor after showing the 
widget hierarchy.

John


More information about the pygtk mailing list