In our last lesson, we learned how to use the pip command. In this lesson, we're going to start learning how to do windows programming in Python. We're going to import a library, but if you have a version of Python, that is like 3.6 or above, so something in the last year, then you already have the package you need. If you need to install it, you go to the path, type in pip install. And then at the end of install, you're gonna put a space and type in tkinter, and what that'll do is that'll put the default windows package inside of Python for you. In our case, we already have it installed and it came with the distributions 3.9. So now we can get started on the window. What I'm going to do is open up our last Python file, which was 27. And I'm gonna right click and edit with IDLE. And this was our lesson on variable scoping. In this case, what we're going to do is we're going to erase this and I'm going to save it as 29. Once that's done, we're now going to apply the tkinter library. And the way we do that is we type from, and that tells us that we're taking stuff from a module. So from tkinter import everything. And the way we do that is we learned in the beginner class that we use the asterisk. Now you're not always going to use an asterisk, but in our case, we wanna get a window built and it's not hurting us by importing everything. Also, if you look at the screen, I've put in the name of the web address where all of the different Python modules can be found. And it's a good idea to take a look at that website and check the different things you can import and what they can do for you. Because once you learn this basic foundation of importing something and then utilizing it, then it'll be easy and you've opened yourself up to all kinds of functionality within Python. So we're going to import everything from tkinter and now we're going to create a window. And the way we do that is we create a variable. Now remember all of this follows that pretty much the same thing we've been doing for all of the lessons prior to this. We have a library, we create a variable and then we assign that variable to something in that module. I also want to point out that I oftentimes substitute library and module. They are essentially the same. I like to use library a little bit more because of the different languages I program in. It makes sense. So it's just preferential. So I'm going to set a variable called wind and it is going to be set to equal Tk. And the T is capitalized. And we follow it with parentheses. What this does is this tells the tkinter library that we want the base Tk object, which creates a window. And the layout for the rest of the code in this case is pretty much all code will be here. And that means any variable assignments and things like that, that's always going to go underneath the creation of the window. Once we have all of that information, we are going to create the function that calls all of that code. So the way we do that is wind because that's the name of our object. And we're going to call a method from tk called main loop. So main loop is a method associated with class tk which is associated with the library tkinter. Now that we have this, it's pretty exciting because we've only written three lines of code, but if I save this and then run it, you'll notice that what we have is we've created a window inside of windows using Python. In our next lesson, we are going to start modifying this window. See you then.