Skip to main content

pyside6-sliders

This package is no longer maintained. It has been replaced by sciwidgets (pip install sciwidgets). All sliders (FloatSlider, IntSlider, ArraySlider, FloatRangeSlider, IntRangeSlider, MultiVariableSlider) are now in sciwidgets.params:

from sciwidgets.params import FloatSlider

Some arguments have changed; see the slider docs.

PyPI version

Reusable PySide6 slider widgets for scientific applications.

Built from real scientific software, these sliders are production-tested and support float/int values, range selection, array editing, custom labels with optional LaTeX rendering, right-click context menus, and configurable styling.

Components

Widget Description
FloatSlider Single float-value slider with label, unit, and value display
IntSlider Single integer-value slider
ArraySlider Multi-value array slider
FloatRangeSlider Dual-handle float range slider
IntRangeSlider Dual-handle integer range slider
MultiVariableSlider Array of float values sharing a single range

Installation

pip install pyside6-sliders

This package depends on pyside6-widgets which will be installed automatically.

Quick Start

FloatSlider

from pyside6_sliders import FloatSlider

slider = FloatSlider(
    name=r"T_1",           # supports LaTeX math
    unit="s",
    val=1.0,
    val_min=0.0,
    val_max=10.0,
    val_fmt="{:.3g}",
)
slider.valueChanged.connect(lambda v: print(f"Value: {v}"))

IntSlider

from pyside6_sliders import IntSlider

slider = IntSlider(
    name="N",
    unit="",
    val=10,
    val_min=1,
    val_max=100,
)

FloatRangeSlider

from pyside6_sliders import FloatRangeSlider

slider = FloatRangeSlider(
    name=r"\nu",
    unit="MHz",
    val=(1.0, 5.0),
    val_min=0.0,
    val_max=10.0,
)
slider.valueChanged.connect(lambda v: print(f"Range: {v}"))

MultiVariableSlider

import numpy as np
from pyside6_sliders import MultiVariableSlider

slider = MultiVariableSlider(
    name=r"v",
    unit="km/s",
    val=np.array([1.0, 2.0, 3.0]),
    val_min=0.0,
    val_max=10.0,
)

Features

  • Float and integer single-value sliders
  • Dual-handle range sliders
  • Array/multi-variable sliders
  • Math label rendering via Matplotlib (optional LaTeX)
  • Right-click context menus for editing value, range, and config
  • Configurable label sizes and display formats
  • Out-of-range dialogs with clamp/extend options
  • Clean signal API: valueChanged, defaultChanged, configChanged

Requirements

  • Python 3.10+
  • PySide6 >= 6.5
  • numpy >= 1.24
  • pyside6-widgets >= 0.1.0

License

MIT License — see LICENSE for details.

Author

Vahid Anari — GitHub · LinkedIn

Metadata

Release files for pyside6-sliders 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyside6-sliders 0.1.1
File Size Uploaded Provenance Actions
pyside6_sliders-0.1.1.tar.gz 3.0 kB Without provenance Details for pyside6_sliders-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyside6-sliders 0.1.1
File Interpreter ABI Platform Actions
pyside6_sliders-0.1.1-py3-none-any.whl Python 3 none any Details for pyside6_sliders-0.1.1-py3-none-any.whl

Total release size: 5.6 kB

Release files / pyside6_sliders-0.1.1.tar.gz

Download URL pyside6_sliders-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a77267b213858705448e511e575c0b19d317f77196872c08670a66969969fd5
BLAKE2b-256 checksum
How to use checksums
c120002c75ee9a4e6f99c2facad95612ebbaf4ccee1a39021728627bd84f83f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / pyside6_sliders-0.1.1-py3-none-any.whl

Download URL pyside6_sliders-0.1.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b342663d21bbf3794f708064c705d33beb1fd820fde39b85e1683bce0256cb8b
BLAKE2b-256 checksum
How to use checksums
cb9f980a3387f9a0222955e3297de811995795756fbd872da3b83f090fcd8339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Security for pyside6-sliders 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page