/tkSliderWidget

Implementation of a slider widget using tkinter, multiple slider supported

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

tkSliderWidget

Implementation of a slider widget using tkinter, multiple slider supported

for an example see: main.py

Slider

	
import tkinter as tk
from tkSliderWidget import Slider

root = tk.Tk()

slider = Slider(root, width = 400, height = 60, min_val = -100, max_val = 100, init_lis = [-50,0,75], show_value = True)
slider.pack()

# optionally add a callback on value change
slider.setValueChangeCallback(lambda vals: print(vals))

root.title("Slider Widget")
root.mainloop()

print(slider.getValues())