v_sim.UiNumericalEntry

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.CellEditable Gtk.CellEditable GObject.GInterface->Gtk.CellEditable Gtk.Editable Gtk.Editable GObject.GInterface->Gtk.Editable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Entry Gtk.Entry Gtk.CellEditable->Gtk.Entry Gtk.Editable->Gtk.Entry v_sim.UiNumericalEntry v_sim.UiNumericalEntry Gtk.Entry->v_sim.UiNumericalEntry Gtk.Widget->Gtk.Entry

Subclasses:

None

Methods

Inherited:

Gtk.Entry (76), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (13)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (value)

getValue ()

setValue (value)

warnValue (fallback)

Virtual Methods

Inherited:

Gtk.Entry (14), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.Editable (10)

Properties

Inherited:

Gtk.Entry (51), Gtk.Widget (39), Gtk.CellEditable (1)

Name

Type

Flags

Short Description

value

float

r/w/c

numerical value

Style Properties

Inherited:

Gtk.Entry (4), Gtk.Widget (17)

Signals

Inherited:

Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Name

Short Description

value-changed

This signal is emitted when a new valid numerical value is entered.

Fields

Inherited:

Gtk.Entry (15), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2), Gtk.Editable (3)

Class Details

class v_sim.UiNumericalEntry(**kwargs)
Bases:

Gtk.Entry

Abstract:

No

Structure:

v_sim.UiNumericalEntryClass

Short form for a #VisuUiNumericalEntry_struct structure.

classmethod new(value)
Parameters:

value (float) – the initial value.

Returns:

a newly created v_sim.UiNumericalEntry widget.

Return type:

Gtk.Widget

A v_sim.UiNumericalEntry widget is like a Gtk.Entry widget, 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:

float

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.Display a 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:

RUN_FIRST, ACTION

Parameters:

This signal is emitted when a new valid numerical value is entered.

New in version 3.1.

Property Details

v_sim.UiNumericalEntry.props.value
Name:

value

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, CONSTRUCT

numerical value