gtk.ToolPaletteSynopsisgtk.ToolPalettegtk.Containergtk.ToolPaletteset_group_positiongrouppositionset_exclusivegroupexclusiveset_expandgroupexpandget_group_positiongroupget_exclusivegroupget_expandgroupset_icon_sizeicon_sizeunset_icon_sizeset_stylestyleunset_styleget_icon_sizeget_styleget_drop_itemxyget_drop_groupxyget_drag_itemselectionset_drag_sourcetargetsadd_drag_destwidgetflagstargetsactionsget_hadjustmentget_vadjustmentAncestry+-- GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.Container
+-- gtk.ToolPalette
Constructorgtk.ToolPaletteReturns :a new gtk.ToolPaletteThis constructor is available in PyGTK 2.20 and above.Creates a new tool palette.Methodsgtk.ToolPalette.set_group_positionset_group_positiongrouppositiongroup :a gtk.ToolItemGroup which is a child of paletteposition :a new index for groupThis 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_exclusiveset_exclusivegroupexclusivegroup :a gtk.ToolItemGroup which is a child of paletteexclusive :whether the group should be exclusive or notThis 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_expandset_expandgroupexpandgroup :a gtk.ToolItemGroup which is a child of paletteexpand :whether the group should be given extra spaceThis method is available in PyGTK 2.20 and above.Sets whether the group should be given extra space.gtk.ToolPalette.get_group_positionget_group_positiongroupgroup :a gtk.ToolItemGroupReturns :the index of group or -1 if group is not a child of paletteThis 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_exclusiveget_exclusivegroupgroup :a gtk.ToolItemGroup which is a child of paletteReturns :TRUE if group is exclusiveThis method is available in PyGTK 2.20 and above.Gets whether group is exclusive or not.
See gtk.ToolPalette.set_exclusive.gtk.ToolPalette.get_expandget_expandgroupgroup :a gtk.ToolItemGroup which is a child of paletteReturns :TRUE if group should be given extra space, FALSE otherwiseThis 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_sizeset_icon_sizeicon_sizeicon_size :the GtkIconSize that icons in the tool palette shall haveThis 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_sizeunset_icon_sizeThis 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_styleset_stylestylestyle :the GtkToolbarStyle that items in the tool palette shall haveThis 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_styleunset_styleThis 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_sizeget_icon_sizeReturns :the GtkIconSize of icons in the tool paletteThis 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_styleget_styleReturns :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_itemget_drop_itemxyx :the x positiony :the y positionReturns :the gtk.ToolItem at position or NULL if there is no such itemThis 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_groupget_drop_groupxyx :the x positiony :the y positionReturns :the gtk.ToolItemGroup at position or NULL if there is no such groupThis method is available in PyGTK 2.20 and above.Gets the group at position (x, y).gtk.ToolPalette.get_drag_itemget_drag_itemselectionselection :a gtk.SelectionDataReturns :the dragged item in selectionThis 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_sourceset_drag_sourcetargetstargets :the GtkToolPaletteDragTargets which the widget should supportThis 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_destadd_drag_destwidgetflagstargetsactionswidget :a gtk.Widget which should be a drag destination for paletteflags :the flags that specify what actions GTK+ should take for drops on that widgettargets :the GtkToolPaletteDragTargets which the widget should supportactions :the GdkDragActions which the widget should suppportThis 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_hadjustmentget_hadjustmentReturns :the horizontal adjustment of paletteThis method is available in PyGTK 2.20 and above.Gets the horizontal adjustment of the tool palette.gtk.ToolPalette.get_vadjustmentget_vadjustmentReturns :the vertical adjustment of paletteThis method is available in PyGTK 2.20 and above.Gets the vertical adjustment of the tool palette.