39 lines
1.1 KiB
Python
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)
|