Skip to content

Commit

Permalink
Dialog_box
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronish authored and Ronish committed Apr 27, 2021
1 parent 2479cd0 commit 7d62edc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions slider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from tkinter import *

root = Tk()

#Vertical Slider
vertical = Scale(root, from_=0, to=400)
vertical.pack()

#Horizontal Slder
horizontal = Scale(root, from_=0, to=400, orient=HORIZONTAL)
horizontal.pack()

#my_label = Label(root, text=horizontal.get()).pack()

#Function Slide created
def slide():
my_Label = Label(root, text=horizontal.get()).pack()
root.geometry(str(horizontal.get()) + "x" + str(vertical.get()))

#Function called
my_btn = Button(root, text="Click Me", command=slide).pack()


mainloop()

0 comments on commit 7d62edc

Please sign in to comment.