This video introduces you to Python's built-in GUI framework, Tkinter. Start with the fewest lines of code required to build a working GUI, and then change the GUI's default size and also fix its size.
- [Instructor] Hello, and welcome to Python projects.…In this video section, we will create a GUI using Python.…We will be using their built in Tkinter module.…Tkinter ships with Python so we do not have…to install any third party modules.…What is Tykinter, here's a definition, Tkinter…is basically a thin layer on top of Tcl/Tk.…
And that's where the name comes from.…So inter means the interface of Python interface…toward Tcl/Tk, so it's Tkinter.…Tkinter is a GUI framework so what that gives us is that in…only a few lines of code, we can create a fully functional…graphical user interface in Python.…So the way to do this is we import the Tkinter module…and here we alias it as Tk, just to…make the name a little shorter.…
And one thing to notice is that in Python 3, the t in…Tkinter is in lower case, in Python 2.X,…it's actually a capital T.…So when you look online you might find lots…of examples that have a capital T.…and if you try those examples, just be aware…to change it for Python 3 was to make the t lowercase.…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service