mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-08 05:10:36 +01:00
Generic slider (#14)
* good coverage * merged classes * working cross platform * range slider tests working too * many more fixes and unification * type * reorg * working labels, better typing * tests * legacy compat * update envlist * skip mouse press not on mac * fix getStyleOption * fix again * skip hover * remove print * add module docstring
This commit is contained in:
12
examples/basic_float.py
Normal file
12
examples/basic_float.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from qtrangeslider import QDoubleSlider
|
||||
from qtrangeslider.qtcompat.QtCore import Qt
|
||||
from qtrangeslider.qtcompat.QtWidgets import QApplication
|
||||
|
||||
app = QApplication([])
|
||||
|
||||
slider = QDoubleSlider(Qt.Horizontal)
|
||||
slider.setRange(0, 1)
|
||||
slider.setValue(0.5)
|
||||
slider.show()
|
||||
|
||||
app.exec_()
|
||||
Reference in New Issue
Block a user