-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
2,694 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Feature request | ||
about: Request a new feature | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
name: Test | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -47,14 +51,6 @@ jobs: | |
platform: ubuntu-latest | ||
backend: pyqt6 | ||
|
||
# python 3.7 | ||
- python-version: 3.7 | ||
platform: macos-latest | ||
backend: pyqt5 | ||
- python-version: 3.7 | ||
platform: windows-latest | ||
backend: pyside2 | ||
|
||
# legacy Qt | ||
- python-version: 3.8 | ||
platform: ubuntu-latest | ||
|
@@ -67,12 +63,7 @@ jobs: | |
backend: "pyqt5==5.14.*" | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
|
@@ -103,7 +94,7 @@ jobs: | |
name: qtpy minreq | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: tlambert03/[email protected] | ||
- uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -113,7 +104,7 @@ jobs: | |
run: | | ||
python -m pip install -U pip | ||
python -m pip install -e .[test,pyqt5] | ||
python -m pip install qtpy==1.1.0 typing-extensions==3.10.0.0 | ||
python -m pip install qtpy==1.1.0 typing-extensions==3.7.4.3 | ||
- name: Test | ||
uses: aganders3/[email protected] | ||
|
@@ -124,12 +115,12 @@ jobs: | |
name: napari tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
path: superqt | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: napari/napari | ||
path: napari-repo | ||
|
@@ -156,7 +147,7 @@ jobs: | |
name: Check Manifest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
@@ -170,7 +161,9 @@ jobs: | |
if: ${{ github.repository == 'pyapp-kit/superqt' && contains(github.ref, 'tags') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Colormap utilities | ||
|
||
See also: | ||
|
||
- [`superqt.QColormapComboBox`](../widgets/qcolormap.md) | ||
- [`superqt.cmap.CmapCatalogComboBox`](../widgets/colormap_catalog.md) | ||
|
||
::: superqt.cmap.draw_colormap | ||
|
||
::: superqt.cmap.QColormapLineEdit | ||
|
||
::: superqt.cmap.QColormapItemDelegate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Error message context manager | ||
|
||
::: superqt.utils.exceptions_as_dialog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Signal Utilities | ||
|
||
::: superqt.utils.signals_blocked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# CmapCatalogComboBox | ||
|
||
Searchable `QComboBox` variant that contains the | ||
[entire cmap colormap catalog](https://cmap-docs.readthedocs.io/en/latest/catalog/) | ||
|
||
!!! note "requires cmap" | ||
|
||
This widget uses the [cmap](https://cmap-docs.readthedocs.io/) library | ||
to provide colormaps. You can install it with: | ||
|
||
```shell | ||
# use the `cmap` extra to include colormap support | ||
pip install superqt[cmap] | ||
``` | ||
|
||
You can limit the colormaps shown by setting the `categories` or | ||
`interpolation` keyword arguments. | ||
|
||
```python | ||
from qtpy.QtWidgets import QApplication | ||
|
||
from superqt.cmap import CmapCatalogComboBox | ||
|
||
app = QApplication([]) | ||
|
||
catalog_combo = CmapCatalogComboBox(interpolation="linear") | ||
catalog_combo.setCurrentText("viridis") | ||
catalog_combo.show() | ||
|
||
app.exec() | ||
``` | ||
|
||
{{ show_widget(130) }} | ||
|
||
{{ show_members('superqt.cmap.CmapCatalogComboBox') }} |
Oops, something went wrong.