I have been working with a research group in physical therapy and exercise science at the university to develop a collection/file management application for their existing python test interface. The existing interface uses Pygame to capture reaction and action times to supplied stimuli.
Previously they were typing in file names, e.g. ‘subject4condition1trial2.csv’. From my experience with participant data collection I’ve realized the fewer mistakes you make allowable the better. With this in mind I have suggested a semi automated collection with the usual warning messages: overwrite, fields missing, etc.
To implement this I wanted to try PyQt. I have used Qt in the past hooking into a C++ application and figured PyQt should work pretty well for this project.
My quick get it going process was to use the Qt Design Editor to quickly generate the .ui file. I used Qt Open Source which you can get here. The Qt Design Editor allows for drag and drop placement of your typical UI elements. Below I show the starting template “Dialog with Buttons Bottom” with a list widget dropped in.
And then we can add some selections to the mix by double clicking the listwidget box and using the opening dialog box shown below.
You can now view your ui through Form > Preview in [one of the available dialog styles]
Next post I’ll show the .ui to .py operation and connecting things to make them do some work.