class X:
def __init__(self, lang=None):
self.lang = lang
def end(self, lang=None):
if not lang:
lang = self.lang
ttk.Button(root,
text=buttons[id],
command=lambda id=id: display.insert(0, buttons[id])).grid(row=row_position[id],
column=column_position[id])