How to pass to the next question?

miguelt1miguelt1 Posts: 2Member

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?

Best Answer

Answers

  • miguelt1miguelt1 Posts: 2Member
    Accepted Answer

    The question was already resolved, thank you all.

Sign In or Register to comment.