module timelinelib.canvas.drawing.graphobject¶
Contains the GraphObject class. Tests are defined Here.
-
class
timelinelib.canvas.drawing.graphobject.
GraphObject
[source]¶ Bases:
object
Contains metric and color information and a list of child graphical objects. When a Graphical object is translated to another position all of its children are also translated. The purpose is to be able to define a graphical object position relative to it’s parent.
-
__init__
(x=0, y=0, w=0, h=0, text='')[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
translate
(x, y)[source]¶ Translate this object to a new position and translate all of it’s child the same amount.
-
property
childs
¶ Getter and Setter property.
-
property
first_child
¶ Getter property.
-
property
text
¶ Getter property.
-
property
point
¶ Getter property.
-
property
rect
¶ Getter property.
-
property
width
¶ Getter property.
-
property
height
¶ Getter property.
-
property
brush_color
¶ Getter and Setter property.
-
property
pen_color
¶ Getter and Setter property.
-