pygui: added support for a details pane, can be toggled on/off, can be used to quickly view details for nodes or links
This commit is contained in:
parent
bb2ceaf993
commit
f582306bb9
12 changed files with 226 additions and 17 deletions
19
daemon/core/gui/frames/default.py
Normal file
19
daemon/core/gui/frames/default.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from core.gui.frames.base import InfoFrameBase
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from core.gui.app import Application
|
||||
|
||||
|
||||
class DefaultInfoFrame(InfoFrameBase):
|
||||
def __init__(self, master: tk.BaseWidget, app: "Application") -> None:
|
||||
super().__init__(master, app)
|
||||
|
||||
def draw(self) -> None:
|
||||
label = ttk.Label(self, text="Click a Node/Link", anchor=tk.CENTER)
|
||||
label.grid(sticky=tk.EW)
|
||||
label = ttk.Label(self, text="to see details", anchor=tk.CENTER)
|
||||
label.grid(sticky=tk.EW)
|
Loading…
Add table
Add a link
Reference in a new issue