Gladeui.Palette

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gladeui.Palette Gladeui.Palette Gtk.Box Gtk.Box Gtk.Box->Gladeui.Palette Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_item_appearance ()

get_project ()

get_show_selector_button ()

get_tool_palette ()

get_use_small_item_icons ()

set_item_appearance (item_appearance)

set_project (project)

set_show_selector_button (show_selector_button)

set_use_small_item_icons (use_small_item_icons)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

do_refresh ()

Properties

Inherited:

Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

item-appearance

Gladeui.ItemAppearance

r/w

The appearance of the palette items

project

Gladeui.Project

r/w

This palette’s current project

show-selector-button

bool

r/w

Whether to show the internal selector button

use-small-item-icons

bool

r/w

Whether to use small icons to represent items

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

refresh

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.Box

r

Class Details

class Gladeui.Palette(*args, **kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

Gladeui.PaletteClass

classmethod new()
Returns:

a new Gladeui.Palette

Return type:

Gtk.Widget

Creates a new Gladeui.Palette widget

get_item_appearance()
Returns:

The appearance of the palette items

Return type:

Gladeui.ItemAppearance

get_project()
Returns:

a Gladeui.Project

Return type:

Gladeui.Project

get_show_selector_button()
Returns:

Whether the selector button is visible

Return type:

bool

get_tool_palette()
Returns:

the Gtk.ToolPalette associated to this palette.

Return type:

Gtk.ToolPalette

get_use_small_item_icons()
Returns:

Whether small item icons are used

Return type:

bool

set_item_appearance(item_appearance)
Parameters:

item_appearance (Gladeui.ItemAppearance) – the item appearance

Sets the appearance of the palette items.

set_project(project)
Parameters:

project (Gladeui.Project) –

set_show_selector_button(show_selector_button)
Parameters:

show_selector_button (bool) – whether to show selector button

Sets whether to show the internal widget selector button

set_use_small_item_icons(use_small_item_icons)
Parameters:

use_small_item_icons (bool) – Whether to use small item icons

Sets whether to use small item icons.

do_refresh() virtual

Signal Details

Gladeui.Palette.signals.refresh(palette)
Signal Name:

refresh

Flags:

RUN_LAST

Parameters:

palette (Gladeui.Palette) – The object which received the signal

Property Details

Gladeui.Palette.props.item_appearance
Name:

item-appearance

Type:

Gladeui.ItemAppearance

Default Value:

Gladeui.ItemAppearance.ICON_ONLY

Flags:

READABLE, WRITABLE

The appearance of the palette items

Gladeui.Palette.props.project
Name:

project

Type:

Gladeui.Project

Default Value:

None

Flags:

READABLE, WRITABLE

This palette’s current project

Gladeui.Palette.props.show_selector_button
Name:

show-selector-button

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

Whether to show the internal selector button

Gladeui.Palette.props.use_small_item_icons
Name:

use-small-item-icons

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether to use small icons to represent items