We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 627d804 + 659a41a commit a317f82Copy full SHA for a317f82
calculator/calculator2.py
@@ -17,7 +17,7 @@ def button(root, text, side, command=None, **kw):
17
frame_top = Frame(root,)
18
frame_top.pack(side=TOP, fill=BOTH, expand=YES)
19
Entry(master=frame_top, relief=SUNKEN,
20
- textvariable=display).pack(side=LEFT, expand=YES, fill=BOTH, padx=5, pady=2)
+ textvariable=display, state=DISABLED).pack(side=LEFT, expand=YES, fill=BOTH, padx=5, pady=2)
21
Button(frame_top, text="C",
22
command=lambda w=display: w.set(''),
23
bg="red", fg="white", relief=RIDGE).pack(side=RIGHT, expand=False, padx=2)
0 commit comments