Re : Making a Python/GTK CheckMenuItem, when clicked, not close the menu
- From: Nicolas Soubeiran <nicolas soubeiran gmail com>
- To: s gtk-app-devel-list david-salisbury co uk
- Cc: gtk-app-devel-list gnome org
- Subject: Re : Making a Python/GTK CheckMenuItem, when clicked, not close the menu
- Date: Fri, 29 Jan 2010 22:36:54 +0100
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]