From 1e5af3116c82fbd715d0deb00684f1da2482cef0 Mon Sep 17 00:00:00 2001 From: Robier Al Kaadi <robal695@student.liu.se> Date: Thu, 18 Jul 2024 09:26:02 +0000 Subject: [PATCH] Update main_window.py --- b_asic/scheduler_gui/main_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/b_asic/scheduler_gui/main_window.py b/b_asic/scheduler_gui/main_window.py index 8ba117c3..e4381b09 100644 --- a/b_asic/scheduler_gui/main_window.py +++ b/b_asic/scheduler_gui/main_window.py @@ -14,7 +14,7 @@ import webbrowser from collections import defaultdict, deque from copy import deepcopy from importlib.machinery import SourceFileLoader -from typing import TYPE_CHECKING, Deque, List, Optional, cast, overload +from typing import TYPE_CHECKING, Deque, Dict, List, Optional, cast, overload # Qt/qtpy import qtpy @@ -126,8 +126,8 @@ class ScheduleMainWindow(QMainWindow, Ui_MainWindow): _splitter_pos: int _splitter_min: int _zoom: float - _color_per_type: dict[str, QColor] = dict() - converted_colorPerType: dict[str, str] = dict() + _color_per_type: Dict[str, QColor] = dict() + converted_colorPerType: Dict[str, str] = dict() def __init__(self): """Initialize Scheduler-GUI.""" @@ -148,7 +148,7 @@ class ScheduleMainWindow(QMainWindow, Ui_MainWindow): self._execution_time_plot_dialogs = defaultdict(lambda: None) self._ports_accesses_for_storage = None self._color_changed_perType = False - self.changed_operation_colors: dict[str, QColor] = dict() + self.changed_operation_colors: Dict[str, QColor] = dict() # Recent files self._max_recent_files = 4 -- GitLab