Book Image

Python GUI Programming Solutions [Video]

By : Burkhard Meier
Book Image

Python GUI Programming Solutions [Video]

By: Burkhard Meier

Overview of this book

<p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p> <h1>Style and approach</h1> <p>Every video in this course solves a problem you might encounter in your programming career. At the same time, most of the videos build on each other to create an entire, real-life GUI application.</p>
Table of Contents (11 chapters)
Chapter 9
Extending Our GUI with the wxPython Library
Content Locked
Section 5
Using Python to Control Two Different GUI Frameworks
When we created an instance of a wxPython GUI from our tkinter GUI, we could no longer use the tkinter GUI controls until we closed the one instance of the wxPython GUI. Let's improve on this. - Use threading from the tkinter button callback function - Overcome the error by making only the wxPython app.MainLoop run in a thread