diff --git a/src/Graph/edge.py b/src/Graph/edge.py index f3f55ba..f38f452 100644 --- a/src/Graph/edge.py +++ b/src/Graph/edge.py @@ -1,9 +1,8 @@ """A Edge class to config the Edge in Graph""" +from tkinter import * from typing import TYPE_CHECKING from ttkbootstrap import * -from tkinter import * - if TYPE_CHECKING: from frame_graph import FrameGraph diff --git a/src/Graph/frame_graph.py b/src/Graph/frame_graph.py index da50725..7e11f04 100644 --- a/src/Graph/frame_graph.py +++ b/src/Graph/frame_graph.py @@ -1,8 +1,8 @@ """Frame contains Graph to visualize the algorithm""" -from ttkbootstrap import * +from tkinter import * from typing import TYPE_CHECKING -from tkinter import * +from ttkbootstrap import * from .edge import Edge from .node import Node diff --git a/src/Graph/node.py b/src/Graph/node.py index 94b5d87..e130392 100644 --- a/src/Graph/node.py +++ b/src/Graph/node.py @@ -1,9 +1,8 @@ """A Node class to config the node in Graph""" +from tkinter import * from typing import TYPE_CHECKING from ttkbootstrap import * -from tkinter import * - if TYPE_CHECKING: from .frame_graph import FrameGraph diff --git a/src/Graph/window.py b/src/Graph/window.py index 939b70e..e89b334 100644 --- a/src/Graph/window.py +++ b/src/Graph/window.py @@ -1,12 +1,11 @@ """The Window shows Application""" -from ttkbootstrap import * from tkinter import * +from ttkbootstrap import * +from ..utils import HEIGHT_WINDOW, WIDTH_WINDOW from .frame_graph import FrameGraph -from ..utils import WIDTH_WINDOW, HEIGHT_WINDOW - class CWindow(Window): """The window class inherits from tb.Window"""