#100DaysOfCode in Python Transcripts
Chapter: Days 94-96: Rich GUI apps in Python
Lecture: Concepts: Gooey

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Now you've seen how easy it is to create a GUI from a command line application. Let's go and review the core concepts.
0:08 So it all starts with the Gooey library, so we're going to import GooeyParser, to get the, to actually show the UI and get the input,
0:17 and then Gooey to indicate here's the method that runs, that triggers the Gooey application. So we got to apply that decorator,
0:25 uh, the best place I found is right on the main method here, and we can give it things like the name, and the program description,
0:31 and that actually shows up in the UI, then when we actually want to get the data, we did this is another method
0:37 but you could just do it straight in line here We're going to configure the parser, create it at a argument, we saw that it can be simple text,
0:44 or you know all sorts of widgets, that we can put in here and those are cool. And then to actually show the UI we're going to parser.parsarcs,
0:51 and then what comes back as Gooey args, we just say .whatever your called the variables .mode, .searchterm is the two that we used,
1:00 of course you can have arbitrarily many, and you can make up those names, so so just make it consistent, and you're off to the races.
1:06 It's standard Python at this point. You provide feedback for, sort of the rest of your app through just print statements,
1:13 and those will land in that little text window in Gooey in the Gooey GUI so it's really nice. Straightforward and simple.
1:21 If you just want a quick and simple GUI application, this is what you do!


Talk Python's Mastodon Michael Kennedy's Mastodon