-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |