Skip to content

Commit

Permalink
fix: fix pyside6 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Jun 15, 2024
1 parent e606d53 commit 5e2c605
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ndv/viewer/_dims_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ class DimsSliders(QWidget):
Maintains the global current index and emits a signal when it changes.
"""

valueChanged = Signal(dict) # dict is of type Indices
# valueChanged is actually a signal that emits a dict of {dim_key -> index}
# but pyside removes the contents of the dict! so we use object instead
valueChanged = Signal(object)

def __init__(self, parent: QWidget | None = None) -> None:
super().__init__(parent)
Expand Down

0 comments on commit 5e2c605

Please sign in to comment.