We construct our own widget from basic graphic elements on a canvas. The existing slide control widget available from Tkinter looks a bit large and cumbersome sometimes. If we need a more neat and compact slide-type user input device we can manufacture our own.
The choice made here is to assemble the essential slider functions as graphic and text elements on a Tkinter canvas.
What we see in the following code are three similar groups of code separated by double lines and a
callback function that focuses on one of the three segments depending on the value of a variable named
focus_flag. Execute the program ...