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
3 answers
List comprehension with tkinter Scale widget data
I'm trying to create a python 2.7 tkinter module which uses scale widget data to influence a list comprehension which selects between animals whose probability traits are represented as a list of lists. The module sorts and displays the three…

Jeff
- 161
- 12
0
votes
0 answers
How to disable callback when hovering above tkinter Scale slider
How to disable the callback to control variable when hovering (not clicking) the mouse above the slider (not trough) of the tkinter Scale widget, after clicking on/dealing with other widget(s)?
Demo procedure:
1.) Run demo script below
2.) Click…

AG77
- 1
- 2
0
votes
0 answers
Tkinter.Scale right click
I have this program where I want the user to be able to right click a tkinter Scale widget in order to set it's value with a popup. There is no problem with the popup itself, but when I right-click it, it does what is intended and then does as if I…

Pauel3312
- 34
- 4
0
votes
1 answer
How to remove the annoying extra bit of a tkinter.ttk scale
There is this very annoying extra bit on ttk(tkinter.ttk) scale here is the image at the end there is an extra bit, which would annoy some people if they notice it(you would kinda be able to spot it). I had it print out what number the scale was and…

Dodu
- 109
- 2
- 8
0
votes
0 answers
How to have two Tkinter sliders interact in an aesthetically pleasing way
I've been working to create a random character generator for D&D that uses probability based of data entered by the user, and I've hit a snag where it comes to the use of sliders.
In my code, the aim is to have the user enter information about a…
0
votes
1 answer
How to set the size of a label inside a panel in tkinter - python
I have three problems!
Problem 1: I am creating a label inside a panel and its size can be changed. I want to keep it fixed. It's possible?
If you move the cursor over the upper and lower limits of the label, you will see that the cursor changes to…

L.O.Barauna
- 77
- 4
0
votes
0 answers
How to reset the scale bar in Tkinter Python
I have created a scale bar in tkinter GUI. I want to reset the scale bar when I click the button
def Reset():
Spd.set(0)
rad1 = Scale(self, orient=HORIZONTAL, resolution=1, length=550, width=15, variable=Spd, sliderlength=10, from_=0,…
0
votes
1 answer
Is it possible to set Tkinter tickinterval as a magnitude?
I want to use a Tkinter scale to set the magnitude of an input. Therefore I want the ticks of the scale to be 1, 10, 100, 1000 etc.
My initial thoughts are that I will have the scale
magnitudescale = Scale(window1, from_ = 0, to = 3)
When the scale…

mayna
- 3
- 1
- 2
- 5
0
votes
1 answer
How do I fix the sliders in Tkinter?
I've been trying to make a left, right, and scale slider for an oval but I can't get them all to work in sync. They work on their own but when I try to add a second slider to the mix, they just reset their position and scale. I used repl.it to write…
0
votes
1 answer
Unable to resize button height in tkinter python
import tkinter
from tkinter import *
root = Tk()
root.title("Demo")
class Application(Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.grid(sticky="ewns")
…

Shambhav Agrawal
- 131
- 7
0
votes
1 answer
Using the Tkinter radio-button widget for a GUI in my python application
I'm developing a python application that models forex derivatives. The intent of the project is to create a GUI that can:
create data models
display visualizations of that data
update the visuals while they're open
quit all windows with one…

JB Larson
- 76
- 2
- 15
0
votes
0 answers
Why are my Python tkiner scales moving silmutaneously?
Please help! I am writing a program in Python using the Spyder IDE. I am using tkinter. My program contains multiple Scale widgets that have been working fine and independently as I would like. However, two scales now seem to depend on each other…

Susi
- 63
- 7
0
votes
1 answer
Can someone help me create this UI in Tkinter
UI I need to make
This is the UI I require. I have made the left side of the UI. However, I am unable to add the frame on the right. I think my inherent positioning of all elements is wrong and so I am unable to get the right side positions of a…

pranp2001
- 65
- 1
- 7
0
votes
0 answers
In Tkinter, Is there a way to stop a callback function from being executed upon running the program?
If I create a tkinter GUI program with a widget that has a callback function, is there a way to ensure that this callback is not executed until the user actually interacts with the widget?
It appears that when the widget is created (scale in the…

Jbean
- 1
- 1
0
votes
0 answers
Python tkinter scale change song position with thread by clicking on scale
So I want to programm a music player in python 3.7 which can play music and on and scale it shows where I am in the song. I also want that I can fast forward in the song by clicking somewhere on the scale.
but it gives me the error :
Exception in…

Finn
- 1
- 1