I'm trying build an app like "who wants to be millionaire" with multiple choices and a lot of questions but the problem is I can not change to the next question when I press a button.
func generate_table():
for d in dict.keys():
correct_answer=dict[d]["res_c"]
if (correct_answer == last_answer):
generate_table()
else:
lbl_question.set_text(dict[d]["questions"])
lbl_answer1.set_text(dict[d]["res_c"])
lbl_answer2.set_text(dict[d]["res_e1"])
lbl_answer3.set_text(dict[d]["res_e2"])
lbl_answer3.set_text(dict[d]["res_e3"])
This is the function I have to generate new questions and answers. I have the questions and answers stored in a dictionary using json. Can you give a help?