diff --git a/vrct_gui/_printToTextbox.py b/vrct_gui/_printToTextbox.py index c0a696c7..88bcc87b 100644 --- a/vrct_gui/_printToTextbox.py +++ b/vrct_gui/_printToTextbox.py @@ -1,7 +1,5 @@ from datetime import datetime from customtkinter import CTkFont -from config import config - def _printToTextbox(settings, target_textbox, original_message, translated_message, tags=None): now_raw_data = datetime.now() @@ -23,10 +21,10 @@ def _printToTextbox(settings, target_textbox, original_message, translated_messa target_textbox._textbox.tag_configure("START", spacing1=10) - target_textbox._textbox.tag_configure("LABEL", font=CTkFont(family=config.FONT_FAMILY, size=12, weight="normal")) - target_textbox._textbox.tag_configure("TIMESTAMP", font=CTkFont(family=config.FONT_FAMILY, size=12, weight="normal")) - target_textbox._textbox.tag_configure("ORIGINAL_MESSAGE", font=CTkFont(family=config.FONT_FAMILY, size=12, weight="normal")) - target_textbox._textbox.tag_configure("TRANSLATED_MESSAGE", font=CTkFont(family=config.FONT_FAMILY, size=16, weight="normal")) + target_textbox._textbox.tag_configure("LABEL", font=CTkFont(family=settings.FONT_FAMILY, size=12, weight="normal")) + target_textbox._textbox.tag_configure("TIMESTAMP", font=CTkFont(family=settings.FONT_FAMILY, size=12, weight="normal")) + target_textbox._textbox.tag_configure("ORIGINAL_MESSAGE", font=CTkFont(family=settings.FONT_FAMILY, size=12, weight="normal")) + target_textbox._textbox.tag_configure("TRANSLATED_MESSAGE", font=CTkFont(family=settings.FONT_FAMILY, size=16, weight="normal")) target_textbox.configure(state='normal') target_textbox.insert("end", f"[{tags}] ", ("START", "LABEL", tags, f"{tags}_COLOR")) diff --git a/vrct_gui/vrct_gui.py b/vrct_gui/vrct_gui.py index 8a4701a0..7468b3b9 100644 --- a/vrct_gui/vrct_gui.py +++ b/vrct_gui/vrct_gui.py @@ -1,6 +1,6 @@ from types import SimpleNamespace -from customtkinter import CTk, get_appearance_mode +from customtkinter import CTk # from window_help_and_info import ToplevelWindowInformation @@ -12,8 +12,6 @@ from .main_window import createMainWindowWidgets from .config_window import ConfigWindow from .ui_utils import _setDefaultActiveTab -from config import config - class VRCT_GUI(CTk): def __init__(self):