The `tkinter.Scale` widget displays a slider which can be moved along a bar to select a numerical value. There are many configuration elements like minimum, maximum, step size, label and a callback command to run if the value is being changed, for example.
Questions tagged [tkinter-scale]
70 questions
0
votes
1 answer
Reversing y coordinates on Tkinter canvas and animation of multiple canvas object based on multiple time
I am kinda new to library Tkinter on python,
I am trying to animate actual time and simulated time of a vehicle on road. The road's segments is constructed using the GPS data.For example, below is my…

Bernando Purba
- 541
- 2
- 9
- 18
0
votes
2 answers
How to create a scale, control it with keyborad arrows, and log single value using tkinter
I am writing a shot pygame based game/experiment, at certain point during the game a question is meant to pop-up asking the participants to recall the number things he just saw.
I am trying to crate a scale that would move left and right using…

Navot Naor
- 59
- 5
0
votes
0 answers
Binding digits to scale in tkinter python3
I've a tkinter scale widget from 0 to 100 with a resolution of 1. Is it possible to bind digits to the scale such that when a user enters any number from 0 to 100, the value is reflected on the scale widget?
Edit 1:
This question has been voted to…

Nagabhushan S N
- 6,407
- 8
- 44
- 87
0
votes
1 answer
How to move the slider of scale slider with the value of two scale slider with tkinter in Python?
I want to make three scale slider in tkinter in Python, where I can move the slider of first two and the third slider moves itself as the sum of the values of first two sliders
I tried with the following code where I try to set the value of first…
0
votes
0 answers
Tkinter scale and animation won't run
So I'm trying to get my code to get the user to define the frequency and a duration of time. After that my program takes the frequency and plays it with pyaudio, and I wanted an animation to show up. I managed to get that done, but my problem is…

YeetorbeYeeted
- 13
- 3
0
votes
1 answer
Giving a tkinter scale widget a 'jump' function
I have a tkinter.scale widget that is executing a command each time the scale is moved. My problem is that whenever i move the mouse it will execute the command rapidly as the scale changes position.
Similar to the tkinter.scrollbar widget that has…

Rudy
- 437
- 2
- 7
0
votes
1 answer
How to get value selected on tkinter scale (scale.get() returns zero)?
I'm trying to create a GUI to run an experiment using tkinter. I need to assign the value selected by the user on a Scale widget to a variable called 'amount'.
However, scale.get() always assigns the value '0' to amount, regardless of where I am on…

protonpasta
- 45
- 1
- 6
0
votes
0 answers
Cant change a button state to 'DISABLED' in tkinter
I am using a theme in tkinter and it's not allowing me to change state of scale (to control volume of a music player).Before applying the theme it was working fine so i am assuming it's because of the theme.
code :
vol_control = ttk.Scale(l_frame,…

Hamza Bodla
- 13
- 3
0
votes
1 answer
How to transmit a new value got with a scale to another function?
I'm on Python2.7 and I try to transmit a value got from a scale, to another function which has to respond to a click.
from tkinter import *
fenetre = Tk()
def other(ev):
m=2
l=3
vol_piano=maj()
print(vol_piano)
def…

CaptainCoding7
- 29
- 7
0
votes
1 answer
How to scroll through a long text label with tkinter Scale widget?
I am trying to read a text file which is very big and I need a Scale widget for that. So, I am using this code:
from Tkinter import *
tk = Tk()
tk.title("Report")
f = open("hola.txt", "r").read()
Label(tk, text=f).grid(row=0)
w = Scale(tk, from_=0,…

Alex
- 31
- 8
0
votes
1 answer
How to continuously change an image using the value of a tkinter Scale widget
I have a bunch of images which I want the user to select using a scale. As the user updates the scale value, I want the GUI to update which image is shown.
I have just started dealing with GUIs and I'm stuck. I've managed to print the new values…

Yuri R. Tonin
- 49
- 8
0
votes
0 answers
How to use multiprocess with Tkinter in Raspberry Pi Python
I am trying to move two servos at the same time. But I cant move it. Because 2nd motor moving after finish the first motor movement which I command over tkinter scale.
I have imported Process from multiprocess and tried.
When i change scale…

blocer
- 1
- 2
0
votes
1 answer
How to do an action for certain values of tkinter Scale widget?
I'm working with with Tkinter in Python and I have an issue with the Scale widget. What I want to do is an action for certain values of the Scale.
Here is the part of the Scale code:
self.scale = Scale(from_=0, to=100, tickinterval=20,…

Javier Valadez
- 38
- 9
0
votes
0 answers
Python Tkinter scale widget but not cover full window height, why?
I'm doing an assignment but need your advise positioning scale in tkinter, I do not have any success, trying multiple options, perhaps you could give me an idea:
The scale should cover full length of my window, but only gets centred
Why ?, I will…

lmarin
- 3
- 2
0
votes
1 answer
How to set the state of a tkinter Scale widget to disabled?
I have been looking around for a way to disable the Scale widget of tkinter but I couldn't find one.
I tried a few things but none seem to work:
w = Scale(master, from_=0,…

Sorade
- 915
- 1
- 14
- 29