Gladeui.SignalEditor

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.SignalEditor Gladeui.SignalEditor Gtk.Box Gtk.Box Gtk.Box->Gladeui.SignalEditor Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:None

Properties

Inherited:Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name Type Flags Short Description
glade-widget Gtk.TreeModel r/w The glade widget to edit signals

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
callback-suggestions Emitted when the editor needs to show a list of callbacks suggestions to the user.
detail-suggestions Emitted when the editor needs to show a list of detail suggestions to the user.
signal-activated Emitted when a item is activated in the Gladeui.Inspector.

Fields

Inherited:Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
parent_instance Gtk.Box r  

Class Details

class Gladeui.SignalEditor(*args, **kwargs)
Bases:Gtk.Box
Abstract:No
Structure:Gladeui.SignalEditorClass
classmethod new()
Returns:a new Gladeui.SignalEditor
Return type:Gladeui.SignalEditor
enable_dnd(enabled)
Parameters:enabled (bool) – whether the drag and drop support should be enabled

If drag and drop support is enabled, the user will be able to drag signal handler from the tree to some editor. The type of the dnd data will be “application/x-glade-signal” and it will be in the form of “widget:signal:py:data::handler<Gladeui.SignalEditor.props.handler>” so for example “Gtk.ToggleButton :toggled:on_toggle_button_toggled”.

get_widget()
Returns:a Gladeui.Widget
Return type:Gladeui.Widget
load_widget(widget)
Parameters:widget (Gladeui.Widget) – a Gladeui.Widget or None

Load a widget in the signal editor. This will show all signals of the widget an it’s accessors in the signal editor where the user can edit them.

Signal Details

Gladeui.SignalEditor.signals.callback_suggestions(signal_editor, signal)
Signal Name:

callback-suggestions

Flags:

RUN_LAST

Parameters:
Returns:

an array of string suggestions

Return type:

[str]

Emitted when the editor needs to show a list of callbacks suggestions to the user.

Gladeui.SignalEditor.signals.detail_suggestions(signal_editor, signal)
Signal Name:

detail-suggestions

Flags:

RUN_LAST

Parameters:
Returns:

an array of string suggestions

Return type:

[str]

Emitted when the editor needs to show a list of detail suggestions to the user.

Gladeui.SignalEditor.signals.signal_activated(signal_editor, signal)
Signal Name:

signal-activated

Flags:

RUN_LAST

Parameters:

Emitted when a item is activated in the Gladeui.Inspector.

Property Details

Gladeui.SignalEditor.props.glade_widget
Name:glade-widget
Type:Gtk.TreeModel
Default Value:None
Flags:READABLE, WRITABLE

The glade widget to edit signals