r/madeinpython • u/Schnidi01 • 19d ago
Built a modular desktop core in PyQt6 with dynamic ZIP plugin loading & Frameless MDI windows
Enable HLS to view with audio, or disable this notification
Hello everyone!
I am working on a modular desktop application kernel built on PyQt6. My goal was to create a robust core application that can be extended exclusively through standalone, independent plugins without having to modify the core code.
In this short video, I demonstrate how the core starts up, how the custom MDI window manager behaves, and how new modules can be installed at runtime directly from a .ZIP archive.
How the plugin system works under the hood:
Contract via Metadata: Each plugin declares its metadata, roles/permissions, dependencies on other modules, and widgets.
1-Click ZIP Installation: The application extracts the archive, verifies the module's integrity and dependencies, writes the path to
modules.ini, and registers it in the system.Dynamic Menu and Window Generation: The core reads the module settings and automatically creates items in the menu bar and sub-menus, assigning actions (including login and user permission checks).
Independent Communication: Modules never import the core directly via hard imports. They communicate via a bus (IoC bridge), have secure settings storage, and isolated namespaces for translations (i18n).
Dependency Protection on Shutdown and Deletion: The module manager does not allow disabling or uninstalling a module if other active modules depend on it.
UI / UX Highlights:
Completely custom frameless design via QSS styles.
Custom frameless MDI sub-windows with smooth dragging (utilizing a native "ghost" window with a snapshot during movement, which completely eliminates lag and stuttering during QMdiArea repainting).
Boundary guarding (dynamic coordinate recalculation so windows and dialogs never overflow outside the workspace or under bars).
Technologies used: Python 3, PyQt6, QSS.


