Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
SBL.gui_codegen_PyQt6 Namespace Reference

Packages

MVP-oriented PyQt6 code generator for SBL GUI JSON specs.

This module defines GeneratorPyQt6, which renders a parsed GUI schema
into a PyQt6 application project with the MVP pattern. The generated app uses a
scrollable form area for inputs and an absolute-positioned canvas for outputs
with proportional resizing. HTML is rendered via QWebEngineView when
available, with QTextBrowser as a fallback. Image and PDF rendering use
Pillow and PyMuPDF when present. Output widgets are registered so they can be
refreshed after the analysis/post-analysis completes.

Primary API:
- ``GeneratorPyQt6.generate_codes(gui, exe_name, post_script) -> dict[str, str]``
    Returns a dictionary mapping file names to their generated source code.