19 Zeilen
481 B
Python
19 Zeilen
481 B
Python
"""
|
|
Base Handler for common functionality
|
|
"""
|
|
|
|
from typing import TYPE_CHECKING
|
|
from utils.logger import logger
|
|
|
|
if TYPE_CHECKING:
|
|
from gui.main_window import MainWindow
|
|
|
|
|
|
class BaseHandler:
|
|
"""Base class for all handlers"""
|
|
|
|
def __init__(self, main_window: 'MainWindow'):
|
|
"""Initialize with reference to main window"""
|
|
self.main_window = main_window
|
|
self.root = main_window.root
|
|
logger.info(f"{self.__class__.__name__} initialized") |