Python Forum
Help with input on make a questionforms
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with input on make a questionforms
#1
In the process of learning python and tkinker via the internet on my own:-)

Have a small project I'm trying on right now, I think I'll learn more by having something concrete.
I have a google spreadsheet that I manage to read data from but would now like to be able to take this data from colum A and then create some kind of questionnaire about what is written there is good or bad ,
but I can't find any good starting idea how you could go further if you should try buttons or radio buttons or if there is any smoother/better way. The idea is that it could be a bit like its own google form. Hope you can give me some input on how to proceed.
Reply
#2
Forget about the spreadsheet for now. Start with making a form (window) that displays a single question with options to choose from and a submit button. When the submit button is pressed, print the question and selected option.

Next, modify your code to be reusable code, a function or method, that takes arguments for the question and options. Modify your code to display multiple questions, either sequentially or all at the same time, calling the function multiple times. When the submit button is pressed, print all the questions and the selected options.

Modify your code to be a form where you pass an iterable that contains the questions and options. Write a main window that displays the form with several questions. When the submit button is pressed, update the main window to display the results. You might want to make the form a dialog window so the main window waits for the form to be submitted.

When you have that all working you can modify your main code to get the questions from a spreadsheet.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020