add gtk.widget in a gnome Applet

Posted by dominos on Stack Overflow See other posts from Stack Overflow or by dominos
Published on 2010-05-19T19:56:12Z Indexed on 2010/05/20 6:50 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

Hi,

I have a question :

I write a little gnome applet, and when we click on a button i want to add a gtk.widget under the "gnome-panel" like the calendar of the clock-applet.

But I don't know how to do this. It's my code :

listButton = gtk.Button(_("lastest"))
self.listTwitt = gtk.TreeView()
mainLayout = gtk.VBox()
mainLayout.pack_start(listButton)
mainLayout.pack_start(self.listTwitt)
self.applet.add(mainLayout)

With this code, when i click on the button, the list shows up in the gnome panel : it's because I add it in the mainLayout.

So how do I add it under the "gnome-panel".

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about gtk