-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsg_box2.py
34 lines (26 loc) · 895 Bytes
/
msg_box2.py
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
#!/usr/bin/python3
# -*- encoding:Utf-8 -*-
"""
Don't use this app !!!
It's an extension of
msgbox.py
"""
from tkinter import *
def click_me():
msg = Tk()
msg.title("MESSAGEBOX")
msg.configure(bg='grey30')
msg.geometry('300x200')
labelbox=Label(msg, text="Do you want to quit ?",
font=('Times', 18, 'bold'), fg='cyan', bg='grey30')
labelbox.pack(padx=30, pady=50)
buttOnebox=Button(msg, text="YES", width=7, bd=3,
fg='cyan', bg='RoyalBlue4', activeforeground='white',
activebackground='dark turquoise',
highlightbackground='cyan', command=quit)
buttOnebox.pack(side=LEFT, expand=YES)
buttTwobox=Button(msg, text="NO", width=7, bd=3,
fg='cyan', bg='RoyalBlue4', activeforeground='red',
activebackground='orange',
highlightbackground='red')
buttTwobox.pack(side=LEFT, expand=YES)