MeVisLab Web Toolkit Reference
Loading...
Searching...
No Matches
MLAB.GUI.NumberEdit Class Reference
Inheritance diagram for MLAB.GUI.NumberEdit:
MLAB.GUI.Widget MLAB.Core.Object

Public Member Functions

 isReturnPressed ()
 Returns true when the return key is pressed.
 setEditable ()
 Set whether the text is editable.
Public Member Functions inherited from MLAB.GUI.Widget
 isEnabled ()
 Returns if the widget is enabled.
 isVisible ()
 Returns if the widget is visible.
 visitChildren ()
 Visits all children recursively and calls visitor with each child as argument.
Public Member Functions inherited from MLAB.Core.Object
 __init__ ()
 Creates a new MLAB.Core.Object.
 blockSignals (blocked)
 Sets if signals are blocked, which means that signals are suppressed in situations where they would have been emitted.
 connect (signal, receiver, slot)
 Connects a signal of this object to the slot of the receiver.
 connectCallback (signal, callback)
 Connects a signal of this object to the given callback function.
 connectSignal (signal, receiver, targetSignal)
 Connects a signal of this object to the signal of the receiver, so that if this signal is emitted, the target signal on the receiver is also emitted.
 disconnect (signal, receiver, signal)
 Disconnects a signal of this object from the slot of the receiver.
 disconnectCallback (signal, callback)
 Disconnects a signal of this object from the given callback function.
 disconnectReceiver (signal, receiver)
 Disconnects a signal of this object from all slots of the receiver.
 emit (signal)
 Emits a signal.
 isSignalRegistered ()
 Returns true if the given signal is registered.
 registerSignal (signal)
 Registers a signal.
 signalsBlocked ()
 Returns true if signals are blocked.

Protected Member Functions

 _updateValue ()
 Reads the input value and validates it, if a validator is available.

Detailed Description

Definition at line 845 of file GUI.py.

Member Function Documentation

◆ _updateValue()

MLAB.GUI.NumberEdit._updateValue ( )
protected

Reads the input value and validates it, if a validator is available.

Stores the number value internally and updates the input value again, because the entered number may not match the current precision.

Returns
Returns true if the input value is valid, false otherwise.

Definition at line 864 of file GUI.py.

◆ isReturnPressed()

MLAB.GUI.NumberEdit.isReturnPressed ( )

Returns true when the return key is pressed.

This can be used to check if the editingFinished signal is emitted because of lost focus or a return press.

Definition at line 849 of file GUI.py.

◆ setEditable()

MLAB.GUI.NumberEdit.setEditable ( )

Set whether the text is editable.

Definition at line 854 of file GUI.py.


The documentation for this class was generated from the following file:
  • C:/jh/mevislab/5.0_0/build/doc.gen/public/SDK/MeVisLabWebToolkitReference/source/MLAB/GUI.py