gdesk.graphics.rulers module¶
- class gdesk.graphics.rulers.Axis(plotAngle, start, stop, thicks, parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsLineItem
- createAxis()¶
- class gdesk.graphics.rulers.Grid(ruler=None, parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsItemGroup
- make_labels(push_values, grid=False)¶
- property orientation¶
- remove_labels(pop_values)¶
- property ticks¶
- update_labels(grid=True)¶
- class gdesk.graphics.rulers.GridItem(level=0, parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsLineItem
- class gdesk.graphics.rulers.LabelItem(text='', level=0, grid=False, parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsLineItem
- setRightAlign()¶
- class gdesk.graphics.rulers.SubDivisionX(parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsLineItem
- class gdesk.graphics.rulers.SubDivisionY(parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsLineItem
- class gdesk.graphics.rulers.TickedRuler(orientation, start, stop, scale, noDecimals=True, parent=None, scene=None)¶
Bases:
PySide2.QtWidgets.QGraphicsPolygonItem
- create_ticks(start, stop, scale)¶
- init_bg()¶
- make_labels(push_values, grid=False)¶
- remove_labels(pop_values)¶
- property thicks¶
- update_labels(start, stop, scale, grid=False)¶