I am creating a Python program to generate a returns report. I have created a simple GUI for my program that allows the user to select the categories they would like to run the report for. The only issue is that in the GUI, each selection has (' ',) format. I was wondering how I could remove these from the options so it displays only the words? I have attached a screenshot of the GUI and the code for the GUI is below.
cat_SQL = "SELECT DISTINCT Inventory.Category FROM Inventory"
cursor.execute(cat_SQL)
result = cursor.fetchall()
final_result = [list(i) for i in result]
string_result = [tuple(map(str, eachTuple)) for eachTuple in final_result]
text = "Select Category(ies): "
title = 'Returns Summary'
choices = string_result
cat_output = multchoicebox(text, title, choices)