Questions tagged [tkinter-scale]

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.

70 questions
2
votes
1 answer

Creating a volume slider in tkinter

I'm trying to use .get() to access entry from my Scale but the volume doesn't change when I move slider. I'm using pygame mixer too btw. Relevant code; def change_vol(): …
Damhan Richardson
  • 419
  • 1
  • 5
  • 16
1
vote
0 answers

Styling tkinter Scale class

Here is the scale I have: self.volume_slider = tk.Scale( self, from_=0, to=100, orient=tk.HORIZONTAL, background="#fdfdfe", highlightbackground="#fdfdfe", highlightcolor="#fdfdfe", …
Nam Vu
  • 1,727
  • 1
  • 11
  • 24
1
vote
0 answers

Is there a way to make a custom askopenfilenames dialog window or at least edit its title bar, close button, etc in tkinter?

I'm making an app in tkinter which uses the ttk.Scale widget to show the process of an mp3 song. I have a function that I want to add buttons with the names of which (the buttons) should be relied on filenames. Therefore I've made this example: from…
Thalis
  • 188
  • 2
  • 12
1
vote
1 answer

Can't apply style to Tkinter slider

I'm trying to apply a style to a slider widget in tkinter. However, the changes to slider_style parameters on the code below don't affect my_slider. Specifically, I'm trying to change the trough width to something smaller. I have seen on different…
1
vote
1 answer

Tick Marks not Displaying - Tkinter Scale

None of the tkinter Scales I've made show tickmarks. I tried pasting other people's code into my editor and same result, no ticks. The example is utterly simple so I couldn't think of anything to try except different values for the tickinterval…
Luther
  • 514
  • 4
  • 17
1
vote
1 answer

Unknow option for tkinter scale widget

I am coding a GUI where you have to enter a number. I want to have a scale but it fits my purpose very well. The problem is a scale goes to 1e-9 precision. This is much to precise for me. I am using ttk extension for tkinter. I have tried a couple…
BrockenDuck
  • 220
  • 2
  • 14
1
vote
1 answer

How do I link an mp3 file with a slider so that the slider moves in relation to the mp3 file length?

How do I link an mp3 file with the slider so that the slider moves in relation to the mp3 file length? In my code the slider only moves if I hold the mouse down on the slider trough. How do I make this work without the mouse being held down…
DaiBach
  • 59
  • 9
1
vote
1 answer

How to (re)enable tkinter ttk Scale widget after it has been disabled?

I'm trying to reenable my Scale widget in Python tkinter after disabling it but it doesn't work. I tried multiple options but none are working. s.state(["normal"]); s.configure(state='normal'); The error that I'm getting is…
Zitrone
  • 79
  • 8
1
vote
1 answer

Change trough increment in python tkinter scale, without affecting slider

When you click in the trough (either side of the slider) in a python tkinter scale, the slider moves one increment to the left/right. If you hold the mouse, it will move more quickly, using repeatdelay & repeatinterval. What I would like, is to have…
R.Jarvis
  • 273
  • 2
  • 8
1
vote
1 answer

How control the value of a tkinter `Scale` widget depending on the value of another tkinter `Scale` widget in Python?

I have 3 Scale widgets scale1, scale2 and scale3. I would like to use scale1 to control the values of scale2 and scale3 in the following manner: I don't want scale2 and scale3 having the same value as scale1. If value of scale1 is 1, value of…
ryanvolap
  • 77
  • 1
  • 8
1
vote
1 answer

How to automatically update `tk.Label` when the value of `tk.Scale` changes?

I put in my frame scale, but I'm not sure how I can show the value of this scale in my label. I need to update it every time the scale moves. How can I do that? self.options_settings.framepripojeni6 = Frame(self.options_settings.tab1) …
Nefritox
  • 147
  • 1
  • 3
  • 10
1
vote
3 answers

How to print the value of a tkinter Scale widget?

Can somebody tell me why this will not print the value? I want to print the output of the Scale widget every time it changes. from tkinter import * master= Tk() master.geometry('500x500+0+0') def print_value(val): print val c1 = Scale(master,…
user2996828
  • 1,137
  • 3
  • 12
  • 19
1
vote
2 answers

Why does tkinter Scale widget have such a slow response?

I've got my head around the code, but I can't understand why the scale is so unresponsive/slow. from tkinter import * #main menu def mmWindow(): mmWindow=Tk() mmWindow.geometry('600x600') #Page 1 def page1(): master.title('Page 1') …
user2996828
  • 1,137
  • 3
  • 12
  • 19
1
vote
0 answers

Relative size of Python Tkinter scale widget

I'm using the place() method of assigning the location of slider bars on my application window. I am using relx, rely, and relwidth to control where the sliders go to make sure they scale up when I maximize the window. The slider bars are in a…
Thetravellingfool
  • 183
  • 1
  • 2
  • 10
1
vote
1 answer

How to create an "array" of multiple tkinter Scale widgets with Python?

I am trying to create a GUI using Python 3.2.3 and the tkinter module. I need an "array" of Scale widgets but cannot for the life of me figure out how to return the values except by creating the Scale widgets one at a time and having a separate…
Simon G
  • 11
  • 1
  • 2