Hi friends,
i'm new here.

Im making a applet for Gnome that is composed by a GtkFrame that packs:
GtkVSeparator and a GtkToggleButton, so to show the context menu (right
click) i need to have the GtkFrame. But i wish to call the applet context
menu right clicking on the toggle button.

how i do this?

here is my factory function:

def sample_factory(applet, iid):

    hbox = gtk.HBox()
    sep =gtk.VSeparator()
    tip= gtk.Tooltips()
    frame = gtk.Frame()
    frame.set_border_width(1)
    hbox.add(sep)
    button = gtk.ToggleButton()
    tip.set_tip(button, "Hide/Show")
    image = gtk.Image()
    image.set_from_file(appPath+"icon.svg")
    button.set_image(image)
    button.connect("clicked",on_button_clicked)


    hbox.add(button)
    frame.add(hbox)
    frame.show()
    applet.add(frame)
    applet.setup_menu(menu, [("Prefs", None),
                            ("About", showAbout)
                            ], None)
    applet.show_all()
    return True



--
:wq

Atenciosamente
__________________________________________
                                                   Gabriel Falcão

"Não há um caminho para o Linux, Linux é o caminho! "

Jabber: [EMAIL PROTECTED]
Blog: http://www.nacaolivre.org
GPG public key: http://www.nacaolivre.org/gabrielteratos.gpg

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCA d-- s++: a--- C++++ UL++ P+ L++++ E- W++ N* o-- K- w---
O-- M+ V- PS+ PE++ Y+++ PGP++ t+ 5 X R+ tv-- b- DI-- D+++
G++ e+ h! r+++ y++
------END GEEK CODE BLOCK------
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to