Gladeui.BaseEditor¶
- 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)
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The container object this editor is currently editing |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Create a child widget here if something else must be done other than calling |
|
Emitted when the user selects a child in the editor’s treeview. |
|
Move child here if something else must be done other than cut & paste. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gladeui.BaseEditor(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_default_properties(gchild)¶
- Parameters:
gchild (
Gladeui.Widget
) – aGladeui.Widget
Add gchild name and type property to self
NOTE: This function is intended to be used in “child-selected” callbacks
- add_editable(gchild, page)¶
- Parameters:
gchild (
Gladeui.Widget
) – theGladeui.Widget
page (
Gladeui.EditorPageType
) – theGladeui.EditorPageType
of the desired page for gchild
Add gchild editor of type page to the base editor
NOTE: This function is intended to be used in “child-selected” callbacks
- add_label(str)¶
- Parameters:
str (
str
) – the label string
Adds a new label to self
NOTE: This function is intended to be used in “child-selected” callbacks
- pack_new_window(title, help_markup)¶
- Parameters:
- Returns:
the newly created window
- Return type:
This convenience function create a new dialog window and packs self in it.
- set_show_signal_editor(val)¶
- Parameters:
val (
bool
) – whether to show the signal editor
Shows/hide self ‘s signal editor
- do_change_type(gchild, type) virtual¶
- Parameters:
gchild (
Gladeui.Widget
) –type (
GObject.GType
) –
- Return type:
- do_child_selected(gchild) virtual¶
- Parameters:
gchild (
Gladeui.Widget
) –
- do_delete_child(parent, gchild) virtual¶
- Parameters:
parent (
Gladeui.Widget
) –gchild (
Gladeui.Widget
) –
- Return type:
- do_get_display_name(gchild) virtual¶
- Parameters:
gchild (
Gladeui.Widget
) –- Return type:
- do_move_child(gparent, gchild) virtual¶
- Parameters:
gparent (
Gladeui.Widget
) –gchild (
Gladeui.Widget
) –
- Return type:
Signal Details¶
- Gladeui.BaseEditor.signals.build_child(base_editor, gparent, type)¶
- Signal Name:
build-child
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalgparent (
GObject.Object
) – the parent of the new childtype (
GObject.GType
) – theGObject.GType
of the child
- Returns:
the newly created
Gladeui.Widget
orNone
if child cant be created- Return type:
Create a child widget here if something else must be done other than calling
Gladeui.Command.create
() such as creating an intermediate parent.
- Gladeui.BaseEditor.signals.change_type(base_editor, object, p0)¶
- Signal Name:
change-type
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalobject (
GObject.Object
) –p0 (
GObject.GType
) –
- Return type:
- Gladeui.BaseEditor.signals.child_selected(base_editor, gchild)¶
- Signal Name:
child-selected
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalgchild (
GObject.Object
) – the selectedGladeui.Widget
.
Emitted when the user selects a child in the editor’s treeview. You can add the relevant child properties here using
Gladeui.BaseEditor.add_default_properties
() and glade_base_editor_add_properties() You can also add labels withGladeui.BaseEditor.add_label
to make the editor look pretty.
- Gladeui.BaseEditor.signals.delete_child(base_editor, gparent, gchild)¶
- Signal Name:
delete-child
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalgparent (
GObject.Object
) – the parentgchild (
GObject.Object
) – the child to delete
- Return type:
- Gladeui.BaseEditor.signals.get_display_name(base_editor, gchild)¶
- Signal Name:
get-display-name
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalgchild (
GObject.Object
) – the child to get display name string to show in gladebaseeditor treeview.
- Returns:
a newly allocated string.
- Return type:
- Gladeui.BaseEditor.signals.move_child(base_editor, gparent, gchild)¶
- Signal Name:
move-child
- Flags:
- Parameters:
base_editor (
Gladeui.BaseEditor
) – The object which received the signalgparent (
GObject.Object
) – the new parent of gchildgchild (
GObject.Object
) – theGladeui.Widget
to move
- Returns:
whether child has been successfully moved or not.
- Return type:
Move child here if something else must be done other than cut & paste.
Property Details¶
- Gladeui.BaseEditor.props.container¶
- Name:
container
- Type:
- Default Value:
- Flags:
The container object this editor is currently editing