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 4
Data and Classes
Content Locked
Section 2
Using Module-Level Global Variables
Global variables can be very useful when programming small applications. They can help to make the data available across methods and functions within the same Python module. Let's check how to do it. - Define a global variable and print its value - Introduce a method to print the same value - Define a local global variable in the method - Find a way to overcome the override issue