-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI2.py
More file actions
51 lines (29 loc) · 877 Bytes
/
GUI2.py
File metadata and controls
51 lines (29 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import tkinter as tk
from tkinter import *
from tkinter.ttk import *
from tkinter import messagebox
window = tk.Tk()
window.geometry('300x300')
window.title('Test Window!')
button3 = tk.Button(window,text="z")
button1 = tk.Button(window,text = "x")
button2 = tk.Button(window,text = "y")
button3.pack(side='bottom',fill = 'x')
button1.pack(side='left',fill ='both',expand='True')
button2.pack(side='right',fill ='both',expand='True')
#buttom2.place(relx = 0.1, rely=0.1,anchor='Center')
#buttom3.place(relx = 0.1, rely=0.1,anchor='Center')
#messagebox.askyesno("Messagebox","Do you want to proceed")
'''
.askretrycancel
askyesnocancel
'''
''''
window.geometry('300x300')
window.title('Test Window!')
f = Frame(window)
button1 = tk.Button(window,text = "x")
button2 = tk.Button(window,text = "y")
button3 = tk.Button(window,text="z")
'''
window.mainloop()