Shared UI components for copick visualization plugins
Project description
copick-shared-ui
Shared UI components for copick visualization plugins.
This package provides reusable Qt-based UI components that can be used across different copick visualization plugins (napari-copick, chimerax-copick, etc.).
Installation
uv pip install copick-shared-ui
Usage
from copick_shared_ui import EditObjectTypesDialog, validate_copick_name
# Use the object types editor
dialog = EditObjectTypesDialog(parent=None, existing_objects=my_objects)
if dialog.exec_() == QDialog.Accepted:
updated_objects = dialog.get_objects()
# Validate copick names
is_valid, sanitized, error_msg = validate_copick_name("my-object-name")
Components
EditObjectTypesDialog
A dialog for managing copick PickableObject types with features:
- Add, edit, and delete object types
- Real-time validation with visual feedback
- Color selection and management
- Support for all
copick.PickableObjectproperties (EMDB/PDB IDs, thresholds, etc.)
Validation
Utilities for validating copick entity names according to copick naming conventions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
copick_shared_ui-0.2.1.tar.gz
(44.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters