place tkinter rip

Solutions on MaxInterview for place tkinter rip by the best coders in the world

showing results for - "place tkinter rip"
Turner
17 Jul 2016
1from tkinter import *
2root = Tk()
3root.geometry("500x500")
4
5btn_height = Button(root, text="50px high")
6btn_height.place(height=50, x=200, y=200)
7
8btn_width = Button(root, text="60px wide")
9btn_width.place(width=60, x=300, y=300)
10
11btn_relheight = Button(root, text="Relheight of 0.6")
12btn_relheight.place(relheight=0.6)
13
14btn_relwidth= Button(root, text="Relwidth of 0.2")
15btn_relwidth.place(relwidth=0.2)
16
17btn_relx=Button(root, text="Relx of 0.3")
18btn_relx.place(relx=0.3)
19
20btn_rely=Button(root, text="Rely of 0.7")
21btn_rely.place(rely=0.7)
22
23btn_x=Button(root, text="X = 400px")
24btn_x.place(x=400)
25
26btn_y=Button(root, text="Y = 321")
27btn_y.place(y=321)
28
29root.mainloop()
30