v_sim.UiLine¶
- Subclasses:
 
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  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
selected color  | 
||
w/c  | 
displayed label on the expander  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
This signal is emitted when the colour of the line is changed.  | 
|
This signal is emitted when the stipple pattern of the line is changed.  | 
|
This signal is emitted when the usage check box is changed.  | 
|
This signal is emitted when the width of the line is changed.  | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
box  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.UiLine(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Private structure to store informations of a
v_sim.UiLineobject.New in version 3.4.
- classmethod new(label)¶
 - Parameters:
 label (
str) – the name of the group, output in bold.- Returns:
 a newly created
v_sim.UiLinewidget.- Return type:
 
A
v_sim.UiLinewidget is a widget allowing to choose the properties of a line. These properties are the line stipple pattern, its colour and its width. The colour is available throughGtk.Rangeand with av_sim.UiColorComboboxwidget. There is also a checkbox allowing to turn the line on or off.New in version 3.4.
- bind(model)¶
 - Parameters:
 model (
v_sim.GlExtLined) – av_sim.GlExtLinedobject.
Bind the properties of model to be displayed by self.
New in version 3.8.
- getOptionBox()¶
 - Returns:
 a
Gtk.Widget.- Return type:
 
Give access to the
Gtk.VBoxof the expander.New in version 3.6.
- setColor(rgb)¶
 - Parameters:
 rgb (
float) – a RGB array.
The line can is drawn in a given colour. Change the interface values using this routine. The colour ranges are updated and if it correspond to a registered colour, it is selected in the combobox.
New in version 3.4.
- setStipple(stipple)¶
 - Parameters:
 stipple (
int) – a value.
The line can be drawn with a given stipple pattern, call this routine to change the interface value.
New in version 3.4.
- setUsed(status)¶
 - Parameters:
 status (
bool) – a boolean.
The line can be turn on or off, call this routine to change the interface status.
New in version 3.4.
- setWidth(width)¶
 - Parameters:
 width (
int) – a value.
The line can be drawn with a given width, call this routine to change the interface value.
New in version 3.4.
- do_lineObject() virtual¶
 to be removed.
Signal Details¶
- v_sim.UiLine.signals.color_changed(ui_line, color)¶
 - Signal Name:
 color-changed- Flags:
 - Parameters:
 ui_line (
v_sim.UiLine) – The object which received the signalcolor (
objectorNone) – the new color values (three RGB values).
This signal is emitted when the colour of the line is changed.
New in version 3.4.
- v_sim.UiLine.signals.stipple_changed(ui_line, stipple)¶
 - Signal Name:
 stipple-changed- Flags:
 - Parameters:
 ui_line (
v_sim.UiLine) – The object which received the signalstipple (
int) – the new stipple pattern.
This signal is emitted when the stipple pattern of the line is changed.
New in version 3.4.
- v_sim.UiLine.signals.use_changed(ui_line, used)¶
 - Signal Name:
 use-changed- Flags:
 - Parameters:
 ui_line (
v_sim.UiLine) – The object which received the signal
This signal is emitted when the usage check box is changed.
New in version 3.4.
- v_sim.UiLine.signals.width_changed(ui_line, width)¶
 - Signal Name:
 width-changed- Flags:
 - Parameters:
 ui_line (
v_sim.UiLine) – The object which received the signalwidth (
int) – the new width.
This signal is emitted when the width of the line is changed.
New in version 3.4.
Property Details¶
- v_sim.UiLine.props.color¶
 - Name:
 color- Type:
 - Default Value:
 - Flags:
 
selected color