def add_buttons(self, entry: ttk.Entry): """Add button to add or remove food from the bill""" self.update() parent = self.nametowidget(entry.winfo_parent()) add_button = ttk.Button( parent, text="+", command=lambda x=entry: self._increment(x), style="small.TButton", cursor="hand2", ) minus_button = ttk.Button( parent, text="-", command=lambda x=entry: self._decrement(x), style="small.TButton", cursor="hand2", ) self.entry_buttons.update({entry: (add_button, minus_button)})