I am running an SQL statement to get all of the course names from the course table from a database. I then use a for loop to place them all in a text widget with a checkbutton beside it. Could someone please tell me why for some values it is placed with curly brackets and how to make it be placed without curly brackets? Help appreciated!
This is what print(searchres) returns
CodePudding user response:
Write text=i[0]
instead of just text=i
. You are passing a tuple to text
while it should only be a string.