-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10.CheckBox.py
More file actions
31 lines (31 loc) · 787 Bytes
/
10.CheckBox.py
File metadata and controls
31 lines (31 loc) · 787 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
from tkinter import *
top = Tk()
top.geometry("200x200")
x = IntVar()
y = IntVar()
z = IntVar()
b1 = Checkbutton(top,
text = "Yes",
variable = x,
onvalue = 1,
offvalue = 0,
height = 2,
width = 10)
b2 = Checkbutton(top,
text = "No",
variable = y,
onvalue = 1,
offvalue = 0,
height = 2,
width = 10)
b3 = Checkbutton(top,
text = "NA",
variable = z,
onvalue = 1,
offvalue = 0,
height = 2,
width = 10)
b1.pack()
b2.pack()
b3.pack()
top.mainloop()