Hi,
On one of my functions is randomly saying that there’s an indention error.
Here’s my code up to the error:
import random
import threading
from time import sleep
from tkinter import *
tk = Tk()
HEIGHT = 1050
WIDTH = 1600
textSetup = Text(tk, height=2, width=30)
canvas = Canvas(tk, width=WIDTH, height=HEIGHT)
tk.title("Times Tables game")
canvas.pack()
class Game:
def Error():
raise Exception("There was an error")
def Start():
global numOfQuestions
global questionsClick
questionsText = textSetup.insert(END, text="How many questions would you like?")
numOfQuestions = Entry(tk)
questionsText.pack()
numOfQuestions.pack()
ps: canvas.mainloop()'s at the end.
output:
def Start():
^
IndentationError: expected an indented block
thanks