Relative Content

Tag Archive for pythonfunctiontkintertkinter-button

How do I resolve syntax error when using tkinter to create a GUI for python?

I am a beginner python user who decided to make a small GUI using tkinter that takes 3 inputs from users (potential restaurants) and after clicking a button, randomly outputs one of the restaurants. I keep getting a syntax error and believe it is related to my buttonfunc or the command that calls it. This code doesn’t yet include anywhere to output the restaurant on the GUI. Any help would be greatly appreiciated