Refactor imports and improve logging in multiple modules; streamline type hints and remove redundant code
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.figure
|
||||
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
|
||||
from matplotlib.axes import Axes
|
||||
from tkinter import ttk
|
||||
import tkinter as tk
|
||||
from typing import Dict
|
||||
from tkinter import ttk
|
||||
|
||||
import matplotlib.figure
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
|
||||
|
||||
|
||||
class GraphManager:
|
||||
@@ -19,7 +19,7 @@ class GraphManager:
|
||||
self.parent_frame.grid_columnconfigure(0, weight=1)
|
||||
|
||||
# Initialize toggle variables for chart elements
|
||||
self.toggle_vars: Dict[str, tk.BooleanVar] = {
|
||||
self.toggle_vars: dict[str, tk.BooleanVar] = {
|
||||
"depression": tk.BooleanVar(value=True),
|
||||
"anxiety": tk.BooleanVar(value=True),
|
||||
"sleep": tk.BooleanVar(value=True),
|
||||
|
||||
Reference in New Issue
Block a user