PySimpleGUI/docs/eCookbook/examples-for-reddit-posts/input-2-fields.md

9 lines
717 B
Markdown
Raw Normal View History

2022-06-30 19:30:25 +00:00
A simple GUI with 2 inputs for this Reddit post:
https://www.reddit.com/r/learnpython/comments/jq17m3/ive_finally_written_my_first_script_for_work_but/
The window will be shown until a button is clicked or closed with an "X". This is called a "One Shot" window. Add an event loop if you want more user interaction.
You can add more advanced features such as adding a popup call to get the date, or adding a Date Chooser button to choose the date. This will be easier for the user and will automatically do a bit of validation of the input.
<iframe src='https://trinket.io/embed/pygame/1609fbce85?start=result' width='100%' height='450' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>