initial classes to help support creating layers for toggling visibility on the canvas for associated items
This commit is contained in:
parent
5e2ca0f549
commit
f72d0d8a69
5 changed files with 176 additions and 0 deletions
|
@ -25,6 +25,7 @@ from core.gui.graph.edges import (
|
|||
create_edge_token,
|
||||
)
|
||||
from core.gui.graph.enums import GraphMode, ScaleOption
|
||||
from core.gui.graph.layers import CanvasLayers
|
||||
from core.gui.graph.node import CanvasNode
|
||||
from core.gui.graph.shape import Shape
|
||||
from core.gui.graph.shapeutils import ShapeType, is_draw_shape, is_marker
|
||||
|
@ -62,6 +63,7 @@ class CanvasGraph(tk.Canvas):
|
|||
super().__init__(master, highlightthickness=0, background="#cccccc")
|
||||
self.app: "Application" = app
|
||||
self.core: "CoreClient" = core
|
||||
self.layers = CanvasLayers(self)
|
||||
self.mode: GraphMode = GraphMode.SELECT
|
||||
self.annotation_type: Optional[ShapeType] = None
|
||||
self.selection: Dict[int, int] = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue