Survey created using Tkinter and Python
I created a survey using Tkinter and Python for research done at Zhejiang University. I am uploading the survey for others to use in their own projects.
Please give me a shout out if you decide to use the program in your work. I'd really appreciate it.
The questions used on the survey are in Mandarin (due to the survey being given here in China). I stopped translating the buttons in order to upload it on GitHub. Check the comments in the code to see which parts you need to change in order to use the project yourself.
The survey consists of four different parts (each part separated by a dialog box to inform the user).
Below are some example screenshots of the survey.
Once the user reaches the end, the answers from the questions are written to a csv file.
The game was created with Python
and Tkinter
(which already comes installed with Python).
Clone the repo:
git clone https://github.com/joshuawillman/SurveyWithTkinter
- Joshua Willman - Blog - RedHuli For more details about the survey and its features, check out the blog post in the link above.
- Giving credit where credit is definitely due.
- Big thanks to Python Programming for the tutorials to get me started.
- Multiple commands when button is pressed:
- (https://stackoverflow.com/questions/13865009/have-multiple-commands-when-button-is-pressed)
- Handling closing event:
- (https://stackoverflow.com/questions/111155/how-do-i-handle-the-window-close-event-in-tkinter)
- Writing headers to CSV files:
- https://stackoverflow.com/questions/28325622/python-csv-writing-headers-only-once
- Creating a dialog with an entry field:
- https://stackoverflow.com/questions/10020885/creating-a-popup-message-box-with-an-entry-field