v_sim.UiNumericalEntry¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Entry (76), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (13)
- Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/c  | 
numerical value  | 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)
Name  | 
Short Description  | 
|---|---|
This signal is emitted when a new valid numerical value is entered.  | 
Fields¶
Class Details¶
- class v_sim.UiNumericalEntry(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Short form for a #VisuUiNumericalEntry_struct structure.
- classmethod new(value)¶
 - Parameters:
 value (
float) – the initial value.- Returns:
 a newly created
v_sim.UiNumericalEntrywidget.- Return type:
 
A
v_sim.UiNumericalEntrywidget is like aGtk.Entrywidget, but it only accepts double precision values (written in plain format, e.g. 1.23456, or scientific notation, e.g. 1.2345e6). The widget can’t be blank and there is always a value printed in it. If the user erase the current value or enter something that is not a recognised double precision value, the widget returns to its previous valid value.
- getValue()¶
 - Returns:
 the double precision value printed in the
v_sim.UiNumericalEntry.- Return type:
 
You can get the value contained in the given self using this method.
- setValue(value)¶
 - Parameters:
 value (
float) – a double precision value.
Use this method to set the value for the given #numericalEntry widget.
- warnValue(fallback)¶
 - Parameters:
 fallback (
float) – a floating point value.
xlib.Displaya warning sign in the entry and fallback to the given value.New in version 3.8.
Signal Details¶
- v_sim.UiNumericalEntry.signals.value_changed(ui_numerical_entry, oldValue)¶
 - Signal Name:
 value-changed- Flags:
 - Parameters:
 ui_numerical_entry (
v_sim.UiNumericalEntry) – The object which received the signaloldValue (
float) – the previous value.
This signal is emitted when a new valid numerical value is entered.
New in version 3.1.