This creates a new label in the root window
root = Tk()
for row_number, row in enumerate(cursor):
Label(root, text = "ID = " + str(row[0])).grid(column = 1, row = row_number)
Label(root, text = "Forename = " + str(row[1])).grid(column = 2, row = row_number)
print ("Surname = ", row[2]) # and so on. transform this too
print ("DOB = ", row[3])
file.close()
root.mainloop()
You do not need to create a class. Report back if it does not work.