sliders ???

This commit is contained in:
dovbaeb committed 2026-11-09 12:51:47 +01:00
1 parent 17fb5437c9
commit c604d8a768
1 file changed
+37
+37
View File
@@ -96,6 +96,43 @@ for path in paths:
# TEST LOGIC END
# Python program to demonstrate
# scale widget
from tkinter import *
b_slider_double = DoubleVar()
c_slider_double = DoubleVar()
s_slider_double = DoubleVar()
def get_sliders():
return b_slider_double.get(), c_slider_double.get(), s_slider_double.get()
b_slider_val, c_slider_val, s_slider_val = get_sliders()
# 1 to 100 → 0 to 1
b_slider = Scale(parent, variable=b_slider_double, from_=1, to=100, orient=HORIZONTAL)
c_slider = Scale(parent, variable=c_slider_double, from_=1, to=100, orient=HORIZONTAL)
s_slider = Scale(parent, variable=s_slider_double, from_=1, to=100, orient=HORIZONTAL)
show_enhance_button = Button(
parent,
text="Apply b",
command=get_sliders,
bg="yellow",
)
l1 = Label(parent)
b_slider.pack(anchor=CENTER)
c_slider.pack(anchor=CENTER)
s_slider.pack(anchor=CENTER)
show_enhance_button.pack(anchor=CENTER)
l1.pack()
# def order_pages():
# global image_files
# image_files.sort(key=lambda x: int(x.split(".")[0]))