gtk.MenuBar
gtk.MenuBar — a widget that displays gtk.MenuItem
widgets horizontally
Methods
gtk.MenuBar.set_pack_direction
def set_pack_direction(pack_dir)
|
Note
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.
gtk.MenuBar.get_pack_direction
Returns : | the current pack direction of the
menubar. |
Note
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.
gtk.MenuBar.set_child_pack_direction
def set_child_pack_direction(child_pack_dir)
|
Note
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.
gtk.MenuBar.get_child_pack_direction
def get_child_pack_direction()
|
Returns : | the current child pack
direction |
Note
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.