spacr.qt¶
PySide6 (Qt 6) desktop interface for spaCR.
Launch the application with spacr, spacr-qt,
python -m spacr.qt or python -m spacr. The last command also accepts
subcommands such as mask and measure to open a specific application
tab.
The interface uses theme.py for its palette and QSS stylesheet,
widgets/ for reusable widgets, screens/ for application screens,
and app.py for the main window and QApplication bootstrap.
Submodules¶
- spacr.qt.ai
- spacr.qt.annotate_engine
- spacr.qt.app
- spacr.qt.app_catalog
- spacr.qt.ask_for_the_path
- spacr.qt.assay_examples
- spacr.qt.bridge
- spacr.qt.button_roles
- spacr.qt.chaining
- spacr.qt.command_palette
- spacr.qt.comparison_grid
- spacr.qt.counting_tool
- spacr.qt.cpu_modes
- spacr.qt.crash_recovery
- spacr.qt.crop_thumbs
- spacr.qt.curation_tool
- spacr.qt.detect_chain
- spacr.qt.dialogs
- spacr.qt.dnd
- spacr.qt.dnd_handlers
- spacr.qt.first_run
- spacr.qt.folder_metadata
- spacr.qt.fractal_defaults
- spacr.qt.gc_policy
- spacr.qt.gil_priority
- spacr.qt.gui_scale
- spacr.qt.help_api_index
- spacr.qt.help_index
- spacr.qt.help_search
- spacr.qt.hf_download
- spacr.qt.hidpi
- spacr.qt.i18n
- spacr.qt.i18n_module_summaries
- spacr.qt.i18n_module_summaries_asia
- spacr.qt.i18n_module_summaries_other
- spacr.qt.i18n_module_summaries_west
- spacr.qt.iconset
- spacr.qt.imagery
- spacr.qt.import_demo
- spacr.qt.ingest_preview
- spacr.qt.install_consent
- spacr.qt.job_runner
- spacr.qt.laptop_mode
- spacr.qt.layer_viewer
- spacr.qt.linked_selection
- spacr.qt.live_zoom
- spacr.qt.logging_util
- spacr.qt.make_masks_datasets
- spacr.qt.make_masks_demo
- spacr.qt.mask_engine
- spacr.qt.mask_thumbnail_quality
- spacr.qt.maturity
- spacr.qt.memory_budget
- spacr.qt.menus
- spacr.qt.model_install
- spacr.qt.module_hints
- spacr.qt.multi_format
- spacr.qt.night_themes
- spacr.qt.notify
- spacr.qt.ops_stitch_demo
- spacr.qt.organelle_modes
- spacr.qt.organisms
- spacr.qt.ortho_view
- spacr.qt.path_probe
- spacr.qt.plate_queue
- spacr.qt.preferences
- spacr.qt.preferences_navigation
- spacr.qt.prefs
- spacr.qt.prerun
- spacr.qt.preview_registry
- spacr.qt.recipes
- spacr.qt.regex_detect
- spacr.qt.regex_editor
- spacr.qt.resonance
- spacr.qt.resource_cleanup
- spacr.qt.roi_tool
- spacr.qt.safespacr
- spacr.qt.screens
- spacr.qt.screensaver
- spacr.qt.secondary_masks
- spacr.qt.settings_diff
- spacr.qt.settings_pack
- spacr.qt.settings_search
- spacr.qt.setup_screen
- spacr.qt.shortcuts
- spacr.qt.shutdown
- spacr.qt.sound
- spacr.qt.sound_preferences
- spacr.qt.sound_synth
- spacr.qt.space
- spacr.qt.spaceout
- spacr.qt.stall_watch
- spacr.qt.starplast
- spacr.qt.startup_benchmark
- spacr.qt.synthetic
- spacr.qt.terms
- spacr.qt.terms_i18n
- spacr.qt.theme
- spacr.qt.thread_guard
- spacr.qt.timing
- spacr.qt.tooltip_policy
- spacr.qt.tutorials
- spacr.qt.verbose_logger
- spacr.qt.walkthrough
- spacr.qt.wand_rescue
- spacr.qt.widget_cleanup
- spacr.qt.widgets
Functions¶
|
Register every app in |
|
Launch the Qt GUI. Public entry point used by both |
Package Contents¶
- spacr.qt.register_self_registering_modules() tuple[str, ...][source]¶
Register every app in
SELF_REGISTERING_MODULES.A row whose registration is pure metadata is taken from
spacr.qt.app_catalog.DECLARED_APPSand its module is NOT imported: the registry learns the key, the name, the sentence, the section and the stage from the table, and the screen’s own code — with pandas, scipy and sklearn behind it — waits until somebody opens the app. Only a module that does real work at registration is imported here, which is the handful that wrap other screens’ factories or reassess what is already registered.Idempotent — every
register()is written to be safe to call twice, so a second launch in one process (the test suite does this) does not raise on a duplicate app key.One module’s failure costs that module’s app and nothing else: an optional panel must never stop the GUI from starting.
- Returns:
the module names that registered without raising, declared and imported alike. A declared row that was already in the registry counts as registered — the caller asked for the app to exist, and it does.
- spacr.qt.run(argv: list[str] | None = None) int[source]¶
Launch the Qt GUI. Public entry point used by both
spacr-qtandpython -m spacr.qt.- Parameters:
argv – Optional CLI arguments. The first positional element, if present, opens directly into that app screen key (e.g.
spacr-qt mask).- Returns:
The exit code returned by
QApplication.exec(), or1when the required Qt dependency cannot be imported.
Nested helpers¶
- _install_quiet_qt_logging.handler(mode, context, message)¶
Drop Qt’s known-noisy messages and pass the rest through.
spacr/qt/__init__.py:133