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
How to update a Scale widget with the value from another Scale widget
I'm trying to update the value of a Scale widget dynamically so it changes its value to the value of another Scale widget. Just to understand how the Scale.set() method works I've tried something like this:
from Tkinter import *
def sel():
…

Vinicius Biscolla
- 49
- 2
- 12
0
votes
1 answer
How set the initial value for a tkinter Scale widget in Python?
I want to initialize the value of a Scale widget to 2. How can I do this? Because I used a grid, .set won't work properly.
Here is my code:
Scale(self, command=self.onMove, movesvariable=self.var, from_=1,…

jiabo zhou
- 11
- 3
0
votes
1 answer
How to change the side where the current value of the tkinter Scale widget is being displayed?
I am using a tkinter Scale widget and I have two scales next to each other. I want the numbers on one of them to go to the other side.
This is the code I am using:
#IMPORTS
from tkinter import *
import time
#USER INPUT
user = input("Please Enter…

Kian Cross
- 1,818
- 2
- 21
- 41
0
votes
1 answer
How to increase multiple values from one tkinter Scale widget
I have a button which recalls 24 values from a text file. I now want to recall these values using a tkinter Scale widget but obviously I will want these values to increase in increments of 1 up to the value that is stored in the text file, these…

user2996828
- 1,137
- 3
- 12
- 19
0
votes
2 answers
How to use value from a text file with the `set` method of a tkinter Scale widget?
I have created a file which saves the values of 2 sliders. Now, I want to be able to recall values from this file to set the value of the sliders.
This is my current code:
from tkinter import *
import os.path
master=…

user2996828
- 1,137
- 3
- 12
- 19
0
votes
1 answer
How do I action a method and pass key of dict with tkinter Scale widget?
I've searched for solutions to this and have tried to implement them, but am not having any success getting a tkinter Scale widget to call a method by setting the command keyword argument.
I am storing the widget objects in lists in a dictionary.…

PaulR
- 706
- 9
- 27
-1
votes
1 answer
Tkinter get value scale
I dont't know why I can't get the value of the scale and why I get this error message. Can anyone help me?
from tkinter import *
Op = Tk()
def sb():
print (Voboll1)
Oboll=Label(Op, text='BOLL')
Oboll.grid(row=1,column=0)
Voboll1 =…

user8183295
- 19
- 3
-1
votes
1 answer
Scale widget not displaying
This is my code and the scale bar does not display. Any suggestion?
from tkinter import *
self.mAsk = Scale(root, orient="horizontal", from_=1, to=16, label = "Mines", resolution = 1, sliderlength=25)
root=Tk()
root.mainloop()

Jofbr
- 455
- 3
- 23
-1
votes
1 answer
Tkinter scale widget being called as 'int' in certain cases
I know that global variables are not the best for good programs, but for the purpose of this short programming task I am using them. I want to update a tkinter scale widget inside of a function that is called by a thread or by the binding of a key.…

Tim
- 9
- 3
-5
votes
1 answer
How to make a slider with the tkinter Scale widget that has words as the intervals?
I'm trying to make a vertical slider with the Scale widget that has words as the intervals. For example, a slider that has
"maximum"
"median"
and "minimum"
in text as the intervals. Is it possible?

katie
- 21
- 1