Home > Software design >  I'm a bit confused why some of my values have curly brackets around them but some of them don&#
I'm a bit confused why some of my values have curly brackets around them but some of them don&#

Time:05-05

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!

enter image description here

enter image description here

This is what print(searchres) returns enter image description here

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.

  • Related