v_sim.UiElementCombobox¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.ComboBox (40), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.CellLayout (9)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
currently selected element  | 
||
r/w  | 
storing nodes used as filter model  | 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 Gtk.ComboBox (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2)
Name  | 
Short Description  | 
|---|---|
This signal is emitted when a new element is selected.  | 
Fields¶
Class Details¶
- class v_sim.UiElementCombobox(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure defining a
v_sim.UiElementComboboxwidget.New in version 3.6.
- classmethod new(hasAllSelector, hasNoneSelector, format)¶
 - Parameters:
 - Returns:
 a newly created widget.
- Return type:
 
Creates a
Gtk.ComboBoxwith a list of availablev_sim.Element. This list can contain in addition a “all” value if hasAllSelector isTrue, or a “None” value if hasNoneSelector isTrue. The format parameter is used to specify the text for each row of theGtk.ComboBox. If formt isNone, just the name of the element is printed.New in version 3.6.
- getSelection()¶
 - Returns:
 a newly created list of
v_sim.Element. It should be freed later with g_list_free().- Return type:
 
Provide a list of selected elements.
New in version 3.6.
- setElement(element)¶
 - Parameters:
 element (
v_sim.Element) – av_sim.Elementobject.- Returns:
 Trueif the given element exists.- Return type:
 
Select a
v_sim.Element.New in version 3.8.
- setModel(nodes)¶
 - Parameters:
 nodes (
v_sim.NodeArray) – av_sim.NodeArrayobject.- Returns:
 Trueif model is actually changed.- Return type:
 
Binds nodes to self, so the list is always displaying the
v_sim.Elementused by nodes.New in version 3.8.
- setSelection(name)¶
 - 
Select a
v_sim.Elementby providing its name.New in version 3.6.
 
- setUnphysicalStatus(status)¶
 - Parameters:
 status (
bool) – a boolean
If status is
True, the combobox will also show elements that are tagged unphysical, seev_sim.Element.getPhysical().New in version 3.7.
Signal Details¶
- v_sim.UiElementCombobox.signals.element_selected(ui_element_combobox, element)¶
 - Signal Name:
 element-selected- Flags:
 - Parameters:
 ui_element_combobox (
v_sim.UiElementCombobox) – The object which received the signalelement (
objectorNone) – the newly selectedv_sim.Element.
This signal is emitted when a new element is selected.
New in version 3.6.
Property Details¶
- v_sim.UiElementCombobox.props.element¶
 - Name:
 element- Type:
 - Default Value:
 - Flags:
 
currently selected element
- v_sim.UiElementCombobox.props.nodes¶
 - Name:
 nodes- Type:
 - Default Value:
 - Flags:
 
storing nodes used as filter model