#100DaysOfCode in Python Transcripts
Chapter: Days 94-96: Rich GUI apps in Python
Lecture: Demo: Where we are starting

Login or purchase this course to watch this video and the rest of the course contents.
0:00 All right, let's jump right into writing some code.
0:02 Now we're going to start with some already existing code.
0:05 In fact, you've seen the application we're
0:07 going to write already, just in an entirely different form.
0:10 Remember way back when, for the movie search app,
0:14 where we consumed JSON APIs?
0:17 So this would be the 'set of days' base that we worked
0:19 with the JSON APIs.
0:22 We're going to take that application, which was definitely
0:24 just a terminal, text based interactive application,
0:28 and we're going to turn that into a Gooey app.
0:30 So here you can see I've made basically a copy
0:34 of those and I've changed it just a little bit.
0:36 We're going to open this in PyCharm,
0:38 but before we do, let's just go over here and
0:40 set up a virtual environment, like so,
0:42 and we'll just all it venv
0:46 and we'll just drop this folder onto PyCharm.
0:49 Now, while it's loading, notice over here,
0:51 I have this starter search app in the file.
0:54 So this is the starter code.
0:56 I'm going to leave it exactly as what you're about to see.
0:59 I'm going to take this one and
1:00 evolve it into the final version.
1:02 Alright, so let's go over here and get started.
1:04 So I'll add the root, look over here,
1:07 and we'll pip install -r requirements.txt
1:10 because we have a couple of things
1:12 that we need for that application.
1:14 Namely, we really needed requests, right there.
1:18 Later we're going to add more to this,
1:20 but for now it's requests.
1:21 These files are red because they're not yet staged in Git,
1:24 which we'll do shortly.
1:25 Now I've changed this just a little tiny bit.
1:28 I've gone over here and I've added the ability--
1:30 Originally what we could only do was find by keyword,
1:33 now we can also find by director
1:35 and we can find by IMDB code.
1:38 So let's try to run this.
1:43 So here's the command line addition.
1:45 So let's search by director, I'll say Cameron,
1:49 so Avatar, that kind of stuff.
1:51 There we go, Almost Famous, Jerry Maguire, Avatar,
1:56 so our search is working, and this is finding all the ones
2:00 that James Cameron directed.
2:02 Okay, so this is working just fine,
2:04 and notice, right now we can pass it, or we can select
2:06 at the moment in this input mode,
2:10 We can select whether or not it's a director,
2:14 or it's the IMDB code, or when we started to fall through.
2:18 The last case is just a generic search here.
2:21 So we're going to do a couple of things.
2:23 The first thing we're going to look at is we're going to see
2:26 how do we make this a Gooey application?
2:29 And then we'll package it all up.
2:31 So we're not going to change the functionality
2:34 of this application hardly at all.
2:35 In fact, we're going to more or less just leave it like it is,
2:39 but instead of getting the inputs from the user via these
2:42 input statements here, we're going to get them
2:45 from a beautiful Gooey.