Python GUI Programming Solutions
- 6 hours on-demand video
- 1 downloadable resource
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Create amazing GUIs with Python’s built-in Tkinter module
- Customize the GUIs by using layout managers to arrange the GUI widgets
- Advance to an object-oriented programming style using Python
- Develop beautiful charts using the free Matplotlib Python module
- Use threading in a networked environment to make the GUIs responsive
- Discover ways to connect the GUIs to a database
- Understand how unit tests can be created and internationalize the GUI
- Extend the GUIs with free Python frameworks using best practices
Python is a very powerful programming language. So powerful that we can build a GUI in only a few lines of code. Let's see how.
The Label Frame widget allows us to design our GUI in an organized fashion. By using Label Frame widgets, we get much more control over our GUI design. Let's have a look.
A message box is a pop-up window that gives feedback to the user. It can be informational, hinting at potential problems, and even catastrophic errors. Let's see the difference between each of them.
We'll learn how to save data from the tkinter GUI into variables so that we can use that data. After that, we'll see how to capture data from a widget.
The Matplotlib Python Module enables us to create visual charts using Python 3.
A tkinter GUI is single-threaded. Every function that involves sleep or wait time has to be called in a separate thread; otherwise, the tkinter GUI freezes. Let's see how to create multiple threads.
As our GUI is ever-increasing in its functionality and usefulness, it starts to talk to networks, processes, and websites, and will eventually have to wait for data to be made available for the GUI to represent. Creating queues in Python solves the problem of waiting for data to be displayed inside our GUI.
In this video, we will see how to connect to a MySQL database server using Python connector driver.
The aim of this video is to internationalize our GUI by changing the window's title from English to another language.
It is a good practice to avoid hard-coding any strings that our GUI displays. We can separate the GUI code from the text that the GUI displays. Designing our GUI in such a modular way makes internationalizing it much easier. Let's check out how it's done.
The wxPython library does not ship with Python, so in order to use it, we first have to install it.
In the previous videos, we found ways to connect a wxPython GUI with a tkinter GUI, invoking one from the other and vice versa. While both GUIs were successfully running at the same time, they did not really communicate with each other. Let's see how to make them communicate with each other.
Use PyOpenGL to create a GUI. While OpenGL can create truly amazing images in true 3D, we'll run into some challenges along the way. Let's discuss how to work around these challenges.
- Some Python programming experience is expected but no knowledge of GUI programming is required to follow this video course.
Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, high-level programming language. It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Its flexible syntax enables developers to write short scripts while at the same time being able to use object-oriented concepts to develop very large projects.
This course follows a task-based approach to help you create beautiful and very effective GUIs with the least amount of code necessary. This course uses the simplest programming style, using the fewest lines of code to create a GUI in Python, and then advances to using object-oriented programming in later sections. If you are new to object-oriented programming (OOP), this video course will teach you how to take advantage of the OOP coding style in the context of creating GUIs written in Python.
Throughout this course, you will develop an entire GUI application, building features into it and connecting the GUI to a database. In the later sections, you will explore additional Python GUI frameworks using best practices. You will also learn how to use threading to ensure your GUI doesn't go unresponsive.
By the end of the course, you will be an expert in Python GUI programming and will be able to develop a common set of GUI applications.
About the Author
Burkhard A. Meier has more than 15 years' of professional experience working in the software industry as a software tester and developer, specializing in software test automation development, execution, and analysis. He has a very strong background in SQL relational database administration, the development of stored procedures, and debugging code. While he is experienced in Visual Studio .NET C#, Visual Test, TestComplete, and other testing languages (such as C/C++), the author's main focus over the past two years has been on developing test automation written in Python 3 to test the leading edge of FLIR ONE infrared cameras for iPhone and Android smart phones as well as handheld tablets. Being highly appreciative of art, beauty, and programming, the author developed GUIs in C# and Python to streamline everyday test automation tasks, enabling these automated tests to run unattended for weeks, collecting very useful data to be analyzed, automatically plotted into graphs, and e-mailed to upper management upon completion of nightly automated test runs. His previous jobs include working as a senior test automation engineer and designer for InfoGenesis (now Agilysys), QAD, InTouch Health, and presently, FLIR Systems.
- This course is for existing Python developers who are interested in creating immersive user interfaces for their applications.