Files
031-flash-card/src/flash_card/presentation/shared/window.py
T
Tirsvad f45d6036e4 MIL-008: Choose level
Review record RC-041 (Go, autonomous mode, not independent).

Task: MIL-008#1
Task: MIL-008#2
Task: MIL-008#3
Task: MIL-008#4
Task: MIL-008#5
Task: MIL-008#6
Task: MIL-008#7
Task: MIL-008#8
2026-10-14 23:58:31 +08:00

20 lines
507 B
Python

"""Window set-up shared by the screens.
@file window.py
@brief Gives the root window its title, padding and background.
"""
import tkinter as tk
from flash_card.constants import BACKGROUND_COLOR, WINDOW_PADDING, WINDOW_TITLE
def configure_window(root: tk.Tk) -> None:
"""Set the title, padding and background of the window.
@param root The Tk root window.
@return Nothing.
"""
root.title(WINDOW_TITLE)
root.config(padx=WINDOW_PADDING, pady=WINDOW_PADDING, bg=BACKGROUND_COLOR)