yasmin_editor.app module
Application bootstrap helpers for the YASMIN editor.
- yasmin_editor.app.build_qt_argv(program_name: str, qt_args: list[str]) list[str]
Build the QApplication argument vector.
The editor only consumes its own CLI flags. Every unknown argument is passed through unchanged so Qt keeps handling style and platform flags exactly like in the original startup flow.
- yasmin_editor.app.create_application(argv: list[str]) QApplication
- yasmin_editor.app.create_plugin_manager() PluginManager
- yasmin_editor.app.open_startup_xml(editor: YasminEditor, xml_file: str) None
Open the startup XML file after the editor canvas is ready.
- yasmin_editor.app.parse_cli_args(argv: list[str] | None = None) tuple[Namespace, list[str]]
Parse editor-specific CLI arguments while preserving Qt arguments.
- yasmin_editor.app.run_editor(argv: list[str] | None = None) int
- yasmin_editor.app.startup_error_message(exc: Exception) str
Return the startup error dialog message for XML loading failures.
- yasmin_editor.app.startup_open_message(xml_file: str) str
Return the status-bar message used after opening a startup XML file.
- yasmin_editor.app.viewport_is_ready(viewport: object, min_size: int = 10) bool
Return whether a canvas viewport is large enough for first paint.
- yasmin_editor.app.wait_for_canvas_ready(editor: YasminEditor, timeout_sec: float = 3.0, min_size: int = 10) bool