PintValidator
¶
digraph inheritancee64e1c0836 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"PintValidator" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A QValidator for pint Quantities"];
"QValidator" -> "PintValidator" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject = None)"];
"wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QValidator" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QValidator(parent: QObject = None)"];
"QObject" -> "QValidator" [arrowsize=0.5,style="setlinewidth(0.5)"];
"simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
PintValidator
[source]¶ Bases:
PyQt5.QtGui.QValidator
A QValidator for pint Quantities
-
property
bottom
¶ - Return type
Quantity
orNone
- Returns
minimum accepted or None if it is not enforced
-
setBottom
(bottom)[source]¶ Set minimum limit
- Parameters
bottom (
Quantity
orNone
) – minimum acceptable value or None if it is not to be enforced
-
setTop
(top)[source]¶ Set maximum limit
- Parameters
top (
Quantity
orNone
) – maximum acceptable value or None if it is not to be enforced
-
setUnits
(units)[source]¶ Set implicit units. They will be assumed when the text does not explicit the unit. They will also be used for dimensionality coherence checks.
- Parameters
units (
Unit
orNone
) – . The implicit unit. If None, implicit dimension is “unitless” and no dimensionality checks will be performed (other than those inherent to range enforcement)
-
property
top
¶ - Return type
Quantity
orNone
- Returns
maximum accepted or None if it is not enforced
-
property
units
¶ - Return type
Unit
orNone
- Returns
base units or None if it should not be enforced
-
property