PyANGKernel.GKText¶
- class GKText¶
A text in the 2D View
Synopsis¶
Methods¶
def
__init__()def
angleAffected()def
getAngle()def
getColor()def
getHeight()def
getText()def
setAngle()def
setColor()def
setHeight()def
setText()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
- angleAffected(_angleAffected)¶
- Parameters:
_angleAffected – bool
Sets if the text will be affected by the general angle rotation of the network
Text angle in radians. The angle 0.0 is the one that sets the text horizontally and it grows counterclockwise
Label color.
Font size in text adjusted to the number of lines
Font size in m
Returns the text to be drawn
Gets if the text object is angle affected
- setAngle(a)¶
- Parameters:
a – float
Text angle in radians. The angle 0.0 is the one that sets the text horizontally and it grows counterclockwise
Label color.
- setHeight(a)¶
- Parameters:
a – float
Font size in m
- setText(t)¶
- Parameters:
t – str
Sets the text to be drawn