Scale widget : Scale « GUI Tk « Python






Scale widget

Scale widget

from Tkinter import *

class AllTkinterWidgets:
    def __init__(self, master):
        frame = Frame(master, width=500, height=400, bd=1)
        frame.pack()

        iframe5 = Frame(frame, bd=2, relief=RAISED)
        Scale(iframe5, from_=0.0, to=50.0, label='Scale widget',
              orient=HORIZONTAL).pack(side=LEFT)
        iframe5.pack(expand=1, fill=X, pady=10, padx=5)
        
    
root = Tk()

all = AllTkinterWidgets(root)

root.mainloop()
           
       








Related examples in the same category

1.Scale Demo: random choiceScale Demo: random choice
2.Use Scale
3.Bound Scale action with a canvasBound Scale action with a canvas
4.Scale Demo: get scale value and open different dialogsScale Demo: get scale value and open different dialogs
5.Scale: get Scale valueScale: get Scale value
6.Scale used to control the size of a circleScale used to control the size of a circle
7.Canvas paint: controlled by ScaleCanvas paint: controlled by Scale