You can add a scale or slider to your window. You may be familiar with this from volume control. It can be a horizontal slider or a vertical slider.
A scale has a minimum and maximum that you can define. You can set a callback function that’s called if you move the slider.
Python Desktop Apps with Tkinter
The tkinter program below creates a scale. You can define the minimum (from_) and maximum (to). To change its orientation, change the orient parameter.
The tickinterval is something you want to set, if it’s different than one. You can also set its length.