Re : Making a Python/GTK CheckMenuItem, when clicked, not close the menu



Hi,
I'm not really aware of PyGTK. But I have a suggestion, it is possible when
you use the GTK+ (C API), I do not know if it is possible in PyGTK.

If the menu widget does not work as you expect, use a custom GtkWindow with
type GTK_WINDOW_POPUP (as say in GTK doc GTK_WINDOW_POPUP is used to
implements widget such as GtkMenu). By doing so, you will have a window that
appears like a popup and be able to manage the visibility of the window.  As
a counterpart you will have to handle "manually" all events that should
change the visibility, the window position, the packing of child, etc...
Hope it helps
Nicolas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]