Initial commit
Dieser Commit ist enthalten in:
19
gui/handlers/base_handler.py
Normale Datei
19
gui/handlers/base_handler.py
Normale Datei
@ -0,0 +1,19 @@
|
||||
"""
|
||||
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")
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren