spacr.qt.screens.annotate
=========================

.. py:module:: spacr.qt.screens.annotate

.. autoapi-nested-parse::

   AnnotateScreen — Qt widget replacing the Tk AnnotateApp.

   Displays a paginated grid of clickable image thumbnails backed by
   `png_list` in a `measurements/measurements.db`. Left-click = value 1,
   right-click = value 2, re-click the same value = clear. Annotations
   are persisted through a background SaveWorker (see
   `spacr.qt.annotate_engine.SaveWorker`).

   Advanced features that are *not* yet ported (marked as TODOs in the UI):
   UMAP window, Deep Spacr training launcher, measurement-threshold
   filtering (the threshold filter can be entered in settings but only
   plain per-page fetch is used at query time in this MVP).







Module Contents
---------------

.. py:data:: BORDER_WIDTH
   :value: 5


.. py:class:: AnnotateScreen(parent: Optional[PySide6.QtWidgets.QWidget] = None)

   Bases: :py:obj:`PySide6.QtWidgets.QWidget`


   Main Qt widget for the annotate app.


   .. py:attribute:: train_requested


   .. py:method:: resizeEvent(event)

      Re-fit the thumbnail grid when the window resizes.



   .. py:method:: closeEvent(event)

      Flush pending annotations and stop the SaveWorker before closing.



