Gladeui.EditorProperty¶
- Subclasses:
Gladeui.EPropBool
,Gladeui.EPropCheck
,Gladeui.EPropColor
,Gladeui.EPropEnum
,Gladeui.EPropFlags
,Gladeui.EPropNamedIcon
,Gladeui.EPropNumeric
,Gladeui.EPropObject
,Gladeui.EPropObjects
,Gladeui.EPropText
,Gladeui.EPropUnichar
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2), Gladeui.Editable (6)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gladeui.Editable (2)
|
|
|
|
|
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Custom Text to display in the property label |
||
r/w/c |
Whether to explicitly disable the check button |
||
r/w/co |
The |
||
r/w |
Whether we should use the command API for the undo/redo stack |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a property’s value is committed, can be useful to serialize commands before and after the property’s commit command from custom editors. |
|
Emitted when a contained property changes value |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gladeui.EditorProperty(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod show_i18n_dialog(parent, text, context, comment, translatable)¶
- Parameters:
parent (
Gtk.Widget
) – The parent widget for the dialog.text (
str
) – A read/write pointer to the text propertycontext (
str
) – A read/write pointer to the translation contextcomment (
str
) – A read/write pointer to the translator commenttranslatable (
bool
) – A read/write pointer to the translatable setting]
- Returns:
True
if OK was selected.- Return type:
Runs a dialog and updates the provided values.
- classmethod show_object_dialog(project, title, parent, object_type, exception, object)¶
- Parameters:
project (
Gladeui.Project
) –title (
str
) –parent (
Gtk.Widget
) –object_type (
GObject.GType
) –exception (
Gladeui.Widget
) –object (
Gladeui.Widget
) –
- Return type:
- classmethod show_resource_dialog(project, parent, filename)¶
- Parameters:
project (
Gladeui.Project
) –parent (
Gtk.Widget
) –filename (
str
) –
- Return type:
- commit(value)¶
- Parameters:
value (
GObject.Value
) – TheGObject.Value
to commit
Commits value to the property currently being edited by self.
- commit_no_callback(value)¶
- Parameters:
value (
GObject.Value
) –
- get_item_label()¶
- Returns:
- Return type:
- get_property()¶
- Returns:
the
Gladeui.Property
- Return type:
- get_property_def()¶
- Returns:
- Return type:
- load(property)¶
- Parameters:
property (
Gladeui.Property
) – AGladeui.Property
Loads property values into self and connects. (the editor property will watch the property’s value until its loaded with another property or
None
)
- load_by_widget(widget)¶
- Parameters:
widget (
Gladeui.Widget
) – AGladeui.Widget
Convenience function to load the appropriate
Gladeui.Property
into self from widget
- do_changed(property) virtual¶
- Parameters:
property (
Gladeui.Property
) –- Return type:
- do_commit(value) virtual¶
- Parameters:
value (
GObject.Value
) – TheGObject.Value
to commit
Commits value to the property currently being edited by eprop.
- do_load(property) virtual¶
- Parameters:
property (
Gladeui.Property
) – AGladeui.Property
Loads property values into eprop and connects. (the editor property will watch the property’s value until its loaded with another property or
None
)
Signal Details¶
- Gladeui.EditorProperty.signals.commit(editor_property, arg1)¶
- Signal Name:
commit
- Flags:
- Parameters:
editor_property (
Gladeui.EditorProperty
) – The object which received the signalarg1 (
object
orNone
) – the newGObject.Value
to commit.
Emitted when a property’s value is committed, can be useful to serialize commands before and after the property’s commit command from custom editors.
- Gladeui.EditorProperty.signals.value_changed(editor_property, arg1)¶
- Signal Name:
value-changed
- Flags:
- Parameters:
editor_property (
Gladeui.EditorProperty
) – The object which received the signalarg1 (
Gladeui.Property
) – theGladeui.Property
that’s value changed.
Emitted when a contained property changes value
Property Details¶
- Gladeui.EditorProperty.props.custom_text¶
-
Custom Text to display in the property label
- Gladeui.EditorProperty.props.disable_check¶
-
Whether to explicitly disable the check button
- Gladeui.EditorProperty.props.property_def¶
- Name:
property-def
- Type:
- Default Value:
- Flags:
The
Gladeui.PropertyDef
thisGladeui.EditorProperty
was created for