2026-07-14 11:14:13 +03:00

17 lines
503 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# config.py
from pathlib import Path
# Длины блоков серийного номера: А999/D15112025/V999/N999 -> 4 / 9 / 4 / 4
SEGMENT_LENGTHS = [4, 9, 4, 4]
# Пути к файлам
DOCUMENTS_PATH = Path.home() / "Documents" / "C4"
SERIAL_FILE = DOCUMENTS_PATH / "serialdata.dat"
# Стили приложения
APP_STYLE = {
'title_font': ("Segoe UI", 12, "bold"),
'entry_font': ("Consolas", 14),
'label_font': ("Segoe UI", 10),
'padding': {'padx': 20, 'pady': 10}
}