From 1b15cddda10566367ba9c08fabf84a32ed8c6a43 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 05:40:29 +0000 Subject: [PATCH] style: format code with Autopep8 and isort This commit fixes the style issues introduced in 40f6105 according to the output from Autopep8 and isort. Details: None --- src/Graph/edge.py | 3 +-- src/Graph/frame_graph.py | 4 ++-- src/Graph/node.py | 3 +-- src/Graph/window.py | 5 ++--- 4 files changed, 6 insertions(+), 9 deletions(-) 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"""