|
class gtk.MenuBar(gtk.MenuShell): |
+--gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.MenuShell +-- gtk.MenuBar
|
|
The gtk.MenuBar
is a
subclass of gtk.MenuShell
which contains one or more gtk.MenuItem
widgets. A gtk.MenuBar
displays the menu items horizontally in an application window or
dialog.
def set_pack_direction(pack_dir
)
| one of the GTK Pack Direction Constants. |
This method is available in PyGTK 2.8 and above.
The set_pack_direction
() sets the
"pack-direction" property to the value of
pack_dir
. pack_dir
must be one
of the GTK Pack Direction Constants that specify how
menuitems are arranged in the menubar.
def get_pack_direction()
Returns : | the current pack direction of the menubar. |
This method is available in PyGTK 2.8 and above.
The get_pack_direction
() method returns
the value of the "pack-direction" property that specifies the arrangement
of menuitems in the menubar. See the GTK Pack Direction Constants for more
information.
def set_child_pack_direction(child_pack_dir
)
| one of the GTK Pack Direction Constants. |
This method is available in PyGTK 2.8 and above.
The set_child_pack_direction
() method
sets the "child-pack-direction" property to the value of
child_pack_dir
. child_pack_dir
must be one of the GTK Pack Direction Constants that specify how
menuitems are arranged in the child menuitems of the menubar.
def get_child_pack_direction()
Returns : | the current child pack direction |
This method is available in PyGTK 2.8 and above.
The get_child_pack_direction
() method
returns the value of the "child-pack-direction" property that specifies the
arrangement of menuitems in thechild menuitems of the menubar. See the GTK Pack Direction Constants for more
information.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.