moved coretk under daemon/core/gui
This commit is contained in:
parent
f13c62a1c9
commit
0b5c94778c
118 changed files with 505 additions and 432 deletions
23
daemon/core/gui/graph/shapeutils.py
Normal file
23
daemon/core/gui/graph/shapeutils.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
import enum
|
||||
|
||||
|
||||
class ShapeType(enum.Enum):
|
||||
MARKER = "marker"
|
||||
OVAL = "oval"
|
||||
RECTANGLE = "rectangle"
|
||||
TEXT = "text"
|
||||
|
||||
|
||||
SHAPES = {ShapeType.OVAL, ShapeType.RECTANGLE}
|
||||
|
||||
|
||||
def is_draw_shape(shape_type):
|
||||
return shape_type in SHAPES
|
||||
|
||||
|
||||
def is_shape_text(shape_type):
|
||||
return shape_type == ShapeType.TEXT
|
||||
|
||||
|
||||
def is_marker(shape_type):
|
||||
return shape_type == ShapeType.MARKER
|
Loading…
Add table
Add a link
Reference in a new issue