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.
Metadata
Release files for copick-shared-ui 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| copick_shared_ui-0.7.0.tar.gz | 318.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copick_shared_ui-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 404.0 kB