2
edits
Line 1,779: | Line 1,779: | ||
# partial takes care of function and argument | # partial takes care of function and argument | ||
cmd = partial(self.calculate, b) | cmd = partial(self.calculate, b) | ||
tk.Button(self, text=b, width=5, relief=rel, | tk.Button(self, text=b, width=5, relief=rel, command=cmd).grid(row=r, column=c) | ||
c += 1 | c += 1 | ||
if c > 4: | if c > 4: |
edits