SXXXXXXX_PyMsc/pymsc/gui/docking/placeholder_dock.py
2026-01-12 08:18:56 +01:00

39 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
"""
Placeholder Dock: Generic empty dock for future modules.
"""
import tkinter as tk
from tkinter import ttk
from pymsc.gui.docking.title_panel import TitlePanel
class PlaceholderDock(TitlePanel):
"""
Placeholder dock for modules not yet implemented.
Shows module name and description.
"""
def __init__(self, parent: tk.Widget, title: str,
description: str = "", **kwargs):
"""
Args:
parent: Parent widget
title: Dock title
description: Module description text
**kwargs: Additional DockFrame options
"""
self.description = description
super().__init__(parent, title=title, **kwargs)
def populate_content(self):
"""Display placeholder message."""
# Center label with module name
label = ttk.Label(
self.content_frame,
text=self.description or f"{self.title}\n\n(Not yet implemented)",
font=('Arial', 12),
justify=tk.CENTER,
foreground='gray'
)
label.pack(expand=True, anchor=tk.CENTER)