#100DaysOfCode in Python Transcripts
Chapter: Days 94-96: Rich GUI apps in Python
Lecture: Your turn: Day 1

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Now comes the exciting part, you get to write some code and build a GUI in Python as well. So here's the demos you've already seen from the videos.
0:12 And down here we have the various steps. So a quick warning for Anaconda users, I've heard some people say that
0:19 installing wxPython has been causing some compatibility issues with their install of Anaconda,
0:25 actually I have no idea what they're really referring to, but just consider using a plain old Python 3 environment,
0:31 or a separate virtual Conda environment. Okay, today, Day N, we're going to start out and mostly it's just about watching the videos
0:40 and learning the material you've already done. So congratulations, you're basically done. But let's take one little step along with,
0:48 I guess you would call it code, we're going to create some files that contain code, anyway. So create a new virtual environment, activate it,
0:54 this is pretty standard at this point, nothing special here. You're going to install Gooey and Cookiecutter. And just go ahead and make a program file,
1:02 because we're going to put some stuff in there, that's where all the code is going to go, just have one this time.
1:08 And just to make sure everything's hanging together, inside your program file, just import Gooey at the top,
1:15 and maybe also import Cookiecutter and run it, and just see that it exits with code zero, no errors or anything like that.
1:22 This step here about pip install gooey and pip install cookiecutter, this is fine on Windows and macOS, but I did run into trouble trying
1:29 to get that to work on Ubuntu. So I had to run this set of prerequisites before I could even get it to install and build and so on.
1:39 So you want to make sure that you run these steps here if you're on Ubuntu. This is going to trigger and install wxPython,
1:46 which is what was causing the trouble, that takes a long time on Ubuntu for some reason. I mean, like 10 minutes for that to just be on that one line.
1:55 But don't give up, eventually you'll get there and then you'll be golden.


Talk Python's Mastodon Michael Kennedy's Mastodon