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. Think about that sh*t. You can set a damn callback function that's called if you move the f*ckin' slider.
Related course: Python Desktop Apps with Damn Tkinter
scale
tkinter scale
The motherf*ckin' tkinter program below creates a scale. You can define the minimum (from_) and maximum (to). To change its muthaf*ckin' orientation, change the orient parameter.
The tickinterval is something you want to damn set, if it's different than one. You can also set its length.
1 |
#!/usr/bin/env python |