Python Coding for Beginner: Sliders with Tkinter

preview_player
Показать описание
Now this could be the last video regarding tkinter but anyways ^^

Thank you for watching ;)

Please leave a comment containing feedback or advice.

Code should be in the pinned comment ^^
Рекомендации по теме
Комментарии
Автор

import tkinter as tk

def update():

gui = tk.Tk()

slider = tk.Scale(gui, from_=0, to=100, showvalue=True, orient=tk.VERTICAL, troughcolor="lightblue", resolution=10)
slider.place(x=20, y=20)

label = tk.Label(text="")
label.place(x=60, y=20)

button = tk.Button(text = "update", command =update)
button.place(x=60, y = 60)


gui.mainloop()

Doggy_Styles_Coding