Compare commits

...

3 Commits

Author SHA1 Message Date
Talley Lambert
e8594d8b40 move pytest-qt6 to tox 2021-04-25 14:27:11 -04:00
Talley Lambert
01f496bc18 pyproject 2021-04-25 14:20:47 -04:00
Talley Lambert
75b29bc600 undo default valuw 2021-04-25 11:45:22 -04:00
4 changed files with 7 additions and 5 deletions

3
pyproject.toml Normal file
View File

@@ -0,0 +1,3 @@
# pyproject.toml
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]

View File

@@ -35,17 +35,16 @@ class QRangeSlider(QSlider):
sliderMoved = Signal(tuple)
_NULL_CTRL = ("None", -1)
_DEFAULT_VALUE = (20, 80)
def __init__(self, *args):
super().__init__(*args)
# list of values
self._value: List[int] = self._DEFAULT_VALUE
self._value: List[int] = [20, 80]
# list of current positions of each handle. same length as _value
# If tracking is enabled (the default) this will be identical to _value
self._position: List[int] = self._DEFAULT_VALUE
self._position: List[int] = [20, 80]
self._pressedControl: ControlType = self._NULL_CTRL
self._hoverControl: ControlType = self._NULL_CTRL

View File

@@ -45,8 +45,7 @@ testing =
tox
tox-conda
pytest
# https://github.com/pytest-dev/pytest-qt/pull/340
pytest-qt @ git+https://github.com/The-Compiler/pytest-qt.git@pyqt6
pytest-qt
pytest-cov
dev =
ipython

View File

@@ -39,4 +39,5 @@ extras =
pyside2: pyside2
pyqt6: pyqt6
pyside6: pyside6
commands_pre = pip install -U pytest-qt@git+https://github.com/The-Compiler/pytest-qt.git@pyqt6
commands = pytest -v --color=yes --cov=qtrangeslider --cov-report=xml