gtk.ToolPalette Synopsis gtk.ToolPalette gtk.Container gtk.ToolPalette set_group_position group position set_exclusive group exclusive set_expand group expand get_group_position group get_exclusive group get_expand group set_icon_size icon_size unset_icon_size set_style style unset_style get_icon_size get_style get_drop_item x y get_drop_group x y get_drag_item selection set_drag_source targets add_drag_dest widget flags targets actions get_hadjustment get_vadjustment Ancestry +-- GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.ToolPalette Constructor gtk.ToolPalette Returns : a new gtk.ToolPalette This constructor is available in PyGTK 2.20 and above. Creates a new tool palette. Methods gtk.ToolPalette.set_group_position set_group_position group position group : a gtk.ToolItemGroup which is a child of palette position : a new index for group This method is available in PyGTK 2.20 and above. The set_group_position() method sets the position of the group as an index of the tool palette. If position is 0 the group will become the first child, if position is -1 it will become the last child. gtk.ToolPalette.set_exclusive set_exclusive group exclusive group : a gtk.ToolItemGroup which is a child of palette exclusive : whether the group should be exclusive or not This method is available in PyGTK 2.20 and above. Sets whether the group should be exclusive or not. If an exclusive group is expanded all other groups are collapsed. gtk.ToolPalette.set_expand set_expand group expand group : a gtk.ToolItemGroup which is a child of palette expand : whether the group should be given extra space This method is available in PyGTK 2.20 and above. Sets whether the group should be given extra space. gtk.ToolPalette.get_group_position get_group_position group group : a gtk.ToolItemGroup Returns : the index of group or -1 if group is not a child of palette This method is available in PyGTK 2.20 and above. Gets the position of group in palette as index. See gtk.ToolPalette.set_group_position. gtk.ToolPalette.get_exclusive get_exclusive group group : a gtk.ToolItemGroup which is a child of palette Returns : TRUE if group is exclusive This method is available in PyGTK 2.20 and above. Gets whether group is exclusive or not. See gtk.ToolPalette.set_exclusive. gtk.ToolPalette.get_expand get_expand group group : a gtk.ToolItemGroup which is a child of palette Returns : TRUE if group should be given extra space, FALSE otherwise This method is available in PyGTK 2.20 and above. Gets whether group should be given extra space. See gtk.ToolPalette.set_expand. gtk.ToolPalette.set_icon_size set_icon_size icon_size icon_size : the GtkIconSize that icons in the tool palette shall have This method is available in PyGTK 2.20 and above. The set_icon_size() method sets the size of icons in the tool palette. gtk.ToolPalette.unset_icon_size unset_icon_size This method is available in PyGTK 2.20 and above. Unsets the tool palette icon size set with gtk.ToolPalette.set_icon_size, so that user preferences will be used to determine the icon size. gtk.ToolPalette.set_style set_style style style : the GtkToolbarStyle that items in the tool palette shall have This method is available in PyGTK 2.20 and above. The set_style() method sets the style (text, icons or both) of items in the tool palette. gtk.ToolPalette.unset_style unset_style This method is available in PyGTK 2.20 and above. Unsets a toolbar style set with gtk.ToolPalette.set_style, so that user preferences will be used to determine the toolbar style. gtk.ToolPalette.get_icon_size get_icon_size Returns : the GtkIconSize of icons in the tool palette This method is available in PyGTK 2.20 and above. Gets the size of icons in the tool palette. See gtk.ToolPalette.set_icon_size. gtk.ToolPalette.get_style get_style Returns : the GtkToolbarStyle of items in the tool palette. This method is available in PyGTK 2.20 and above. Gets the style (icons, text or both) of items in the tool palette. gtk.ToolPalette.get_drop_item get_drop_item x y x : the x position y : the y position Returns : the gtk.ToolItem at position or NULL if there is no such item This method is available in PyGTK 2.20 and above. Gets the item at position (x, y). See gtk.ToolPalette.get_drop_group. gtk.ToolPalette.get_drop_group get_drop_group x y x : the x position y : the y position Returns : the gtk.ToolItemGroup at position or NULL if there is no such group This method is available in PyGTK 2.20 and above. Gets the group at position (x, y). gtk.ToolPalette.get_drag_item get_drag_item selection selection : a gtk.SelectionData Returns : the dragged item in selection This method is available in PyGTK 2.20 and above. Get the dragged item from the selection. This could be a gtk.ToolItem or a gtk.ToolItemGroup. gtk.ToolPalette.set_drag_source set_drag_source targets targets : the GtkToolPaletteDragTargets which the widget should support This method is available in PyGTK 2.20 and above. The set_drag_source() method sets the tool palette as a drag source. Enables all groups and items in the tool palette as drag sources on button 1 and button 3 press with copy and move actions. See gtk.Widget.drag_source_set. gtk.ToolPalette.add_drag_dest add_drag_dest widget flags targets actions widget : a gtk.Widget which should be a drag destination for palette flags : the flags that specify what actions GTK+ should take for drops on that widget targets : the GtkToolPaletteDragTargets which the widget should support actions : the GdkDragActions which the widget should suppport This method is available in PyGTK 2.20 and above. Sets palette as drag source (see gtk.ToolPalette.set_drag_source) and sets widget as a drag destination for drags from palette. See gtk.Widget.drag_dest_set. gtk.ToolPalette.get_hadjustment get_hadjustment Returns : the horizontal adjustment of palette This method is available in PyGTK 2.20 and above. Gets the horizontal adjustment of the tool palette. gtk.ToolPalette.get_vadjustment get_vadjustment Returns : the vertical adjustment of palette This method is available in PyGTK 2.20 and above. Gets the vertical adjustment of the tool palette.