I am currently doing a menu test for my restaurant. I made a GUI and am satisfied with my main format (for now), but I am fixated on how to take the next step.
I have several checkboxes configured (different ingredients), and the plan is that for different menu items it scrolls (appears on the screen), then the employee checks the corresponding ingredients, clicks the submit and continue button that I made, and then the next one appears menu item instead of the previous one. I will be much more than reading and storing the entrance, but for now I wanted to jump with this obstacle before moving on.
I'm new to using Python for GUIs, so I'm not sure if this is the best way to do this.
I found different code examples, but nothing concrete to implement in my program. Any advice is greatly appreciated!
Here is my GUI: 
from tkinter import * globalvar = -1 class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent, background="white") self.parent = parent self.initUI() def initUI(self): self.parent.title("Wahoos Menu Test") def main(): def callBack(number): globalvar = number + 1 item(globalvar) def item(number): menu = ['nft', 'nckt'] m = Label(root, text=menu[number], fg="orange").grid(row=7, column=0) root = Tk() app = Example(root)
source share