Below is my code, I can't make it start another question if a question is answered.
I have a list of questions that the app asks, but it is pointless to post them all here. I just can't figure out how to keep on asking questions.
from tkinter import *
from random import randint
from tkinter import ttk
def correct():
vastus = ('correct')
messagebox.showinfo(message=vastus)
def first():
box = Tk()
box.title('First question')
box.geometry("300x300")
silt = ttk.Label(box, text="Question")
silt.place(x=5, y=5)
answer = ttk.Button(box, text="Answer 1", command=correct)
answer.place(x=10, y=30, width=150,)
answer = ttk.Button(box, text="Answer 2",command=box.destroy)
answer.place(x=10, y=60, width=150)
answer = ttk.Button(box, text="Answer 3", command=box.destroy)
answer.place(x=10, y=90, width=150)
first()
correcti.e. your message box?command=correctpart on the first button.