Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am new to Python, currently working on my first app, which is command line dri

ID: 657471 • Letter: I

Question

I am new to Python, currently working on my first app, which is command line driven, but somewhat complex so that I would like to add a GUI front-end.

So, basically, I just want to design a GUI to accept input, rather than passing it on the command line.

Generally, we are taking of text input fields, with perhaps radio buttons, check-boxes & drop-down combo/list boxes - nothing too fancy.

The only slight problem is that I might want to have multiple possible text inputs depending on some other items on the form. Let's imagine that I want to add one - or more - people, each with a name & email address.

I could just guess at the max number of users and place that many empty inputs on the form, but what if my guess is wrong, besides which, it will look ugly if we only want to add one.

Better would be to have one input and have a plus sign to add more, so a GUI builder that allows that automatically is a big bonus. Otherwise I would have to handle a click on the plus sign at run-time then create a new input and shuffle the other controls down the form :-(

I hope that I have described this clearly. This is likely to be a one off, with no further Python in my future, so something with little learning curve is desirable.

Explanation / Answer

If you can cleanly express your program on the command line, then Gooey should be able to cover all of your use cases. It also has the bonus of creating the GUI automatically so you don't have to design it yourself.

The only point I'm unsure on is what you mean by multiple text inputs; meaning, I'm not sure how this looks on the command line. Or how your conditional logic works. So it may not be perfect for your script.