A Windows sidebar that works standalone, but is best used with SegumiOS.
Goal: Embed a Tkinter application within the sidebar.
Place plugin files in the plugins
folder.
Plugin Code Example (plugins/your_plugin_name.py
):
import tkinter as tk
def run(sidebar, frame):
app = tk.Frame(frame)
app.pack(fill=tk.BOTH, expand=True)
# Build your Tkinter application within 'app'
# ...
Key Function:
run(sidebar, frame)
: The plugin's entry point.sidebar
is theSidebar
object, andframe
is thetk.Frame
container.- Create a
tk.Frame
(e.g.,app
) insideframe
to serve as the root of your application. app.pack(fill=tk.BOTH, expand=True)
ensures the application fills the available space.- All widgets should be added to
app
.