Python GUI Programming Solutions [Video]

Preview in Mapt

Python GUI Programming Solutions [Video]

Burkhard Meier

1 customer reviews
Over 80 object-oriented tasks to help you create mind-blowing GUIs in Python

Quick links: > What will you learn?> Table of content

Video
$76.50
RRP $89.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$76.50
RRP $89.99

Frequently bought together


Python GUI Programming Solutions [Video] Book Cover
Python GUI Programming Solutions [Video]
$ 89.99
$ 76.50
Tensorflow Solutions for Data [Video] Book Cover
Tensorflow Solutions for Data [Video]
$ 124.99
$ 106.25
Buy 2 for $35.00
Save $179.98
Add to Cart

Video Details

ISBN 139781786465528
Course Length6 hours 7 minute

Video Description

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.

Style and approach

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.

Table of Contents

Creating the GUI Form and Adding Widgets
Introduction to Python GUI
Adding a Label to the GUI Form
Creating Buttons and Text Box Widgets
Exploring Widgets
Adding Extra Features
Adding Several Widgets in a Loop
Layout Management
Arranging Several Labels within a Label Frame
Using Padding to Add Space Around Widgets
Expanding the GUI Dynamically Using Widgets
Aligning the GUI Widgets by Embedding Frames within Frames
Creating Menu Bars
Creating Tabbed Widgets
Using the Grid Layout Manager
Look and Feel Customization
Creating Message Boxes
Creating Independent Message Boxes
Creating the Title and Icon of the Main Root Window
Using a Spinbox Control
Creating Tooltips and Using the Canvas Widget
Data and Classes
Using the StringVar() Type
Using Module-Level Global Variables
Improving the GUI by Coding in Classes
Creating Reusable GUI Components
Matplotlib Charts
Creating Beautiful Charts Using Matplotlib
Downloading Modules for Matplotlib
Creating Our First Chart
Placing Labels on Charts
Giving the Chart a Legend
Scaling Charts
Adjusting the Scale Dynamically
Threads and Networking
Creating Multiple Threads
Starting a Thread
Stopping a Thread
Using Queues
Passing Queues among Different Modules
Using Dialog Widgets to Copy Files to Your Network
Using TCP/IP to Communicate via Networks
Using URLOpen to Read Data from Websites
Storing Data in Our MySQL Database via Our GUI
Connecting to a MySQL Database from Python
Configuring the MySQL Connection
Designing the Python GUI Database
Using the SQL INSERT Command
Using the SQL UPDATE Command
Using the SQL DELETE Command
Internationalization and Testing
Displaying Widget Text in Different Languages
Changing the Entire GUI Language All at Once
Localizing the GUI
Preparing the GUI for Internationalization
Designing a GUI in an Agile Fashion
Do We Need to Test the GUI Code?
Setting Debug Watches
Configuring Different Debug Output Levels
Creating Self-Testing Code Using Python's __main__ Section
Creating Robust GUIs Using Unit Tests
Writing Unit Tests Using the Eclipse PyDev IDE
Extending Our GUI with the wxPython Library
Installing the wxPython Library
Creating Our GUI
Adding Controls
Embedding the tkinter and wxPython GUIs into Each Other
Using Python to Control Two Different GUI Frameworks
Communicating Between the Two Connected GUIs
Creating Amazing 3D GUIs with PyOpenGL and Pyglet
PyOpenGL Transforms Our GUI
Our GUI in 3D
Pyglet Transforms Our GUI More Easily Than PyOpenGL
Creating a Slideshow Using tkinter
Best Practices
Avoiding Spaghetti Code
Using __init__ to Connect Modules
Mixing Fall-Down and OOP Coding
When Not to Use OOP
Using Design Patterns Successfully
Avoiding Complexity

What You Will Learn

  • 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

Authors

Table of Contents

Creating the GUI Form and Adding Widgets
Introduction to Python GUI
Adding a Label to the GUI Form
Creating Buttons and Text Box Widgets
Exploring Widgets
Adding Extra Features
Adding Several Widgets in a Loop
Layout Management
Arranging Several Labels within a Label Frame
Using Padding to Add Space Around Widgets
Expanding the GUI Dynamically Using Widgets
Aligning the GUI Widgets by Embedding Frames within Frames
Creating Menu Bars
Creating Tabbed Widgets
Using the Grid Layout Manager
Look and Feel Customization
Creating Message Boxes
Creating Independent Message Boxes
Creating the Title and Icon of the Main Root Window
Using a Spinbox Control
Creating Tooltips and Using the Canvas Widget
Data and Classes
Using the StringVar() Type
Using Module-Level Global Variables
Improving the GUI by Coding in Classes
Creating Reusable GUI Components
Matplotlib Charts
Creating Beautiful Charts Using Matplotlib
Downloading Modules for Matplotlib
Creating Our First Chart
Placing Labels on Charts
Giving the Chart a Legend
Scaling Charts
Adjusting the Scale Dynamically
Threads and Networking
Creating Multiple Threads
Starting a Thread
Stopping a Thread
Using Queues
Passing Queues among Different Modules
Using Dialog Widgets to Copy Files to Your Network
Using TCP/IP to Communicate via Networks
Using URLOpen to Read Data from Websites
Storing Data in Our MySQL Database via Our GUI
Connecting to a MySQL Database from Python
Configuring the MySQL Connection
Designing the Python GUI Database
Using the SQL INSERT Command
Using the SQL UPDATE Command
Using the SQL DELETE Command
Internationalization and Testing
Displaying Widget Text in Different Languages
Changing the Entire GUI Language All at Once
Localizing the GUI
Preparing the GUI for Internationalization
Designing a GUI in an Agile Fashion
Do We Need to Test the GUI Code?
Setting Debug Watches
Configuring Different Debug Output Levels
Creating Self-Testing Code Using Python's __main__ Section
Creating Robust GUIs Using Unit Tests
Writing Unit Tests Using the Eclipse PyDev IDE
Extending Our GUI with the wxPython Library
Installing the wxPython Library
Creating Our GUI
Adding Controls
Embedding the tkinter and wxPython GUIs into Each Other
Using Python to Control Two Different GUI Frameworks
Communicating Between the Two Connected GUIs
Creating Amazing 3D GUIs with PyOpenGL and Pyglet
PyOpenGL Transforms Our GUI
Our GUI in 3D
Pyglet Transforms Our GUI More Easily Than PyOpenGL
Creating a Slideshow Using tkinter
Best Practices
Avoiding Spaghetti Code
Using __init__ to Connect Modules
Mixing Fall-Down and OOP Coding
When Not to Use OOP
Using Design Patterns Successfully
Avoiding Complexity

Video Details

ISBN 139781786465528
Course Length6 hours 7 minute
Read More
From 1 reviews

Read More Reviews

Recommended for You

Tensorflow Solutions for Data [Video] Book Cover
Tensorflow Solutions for Data [Video]
$ 124.99
$ 106.25
Advanced Server-Side Programming with Node.js [Video] Book Cover
Advanced Server-Side Programming with Node.js [Video]
$ 124.99
$ 106.25
JIRA Administration - Getting Started with JIRA [Video] Book Cover
JIRA Administration - Getting Started with JIRA [Video]
$ 124.99
$ 106.25
Extending Laravel with First Party Packages [Video] Book Cover
Extending Laravel with First Party Packages [Video]
$ 124.99
$ 106.25
Building Your Application with React Native [Video] Book Cover
Building Your Application with React Native [Video]
$ 124.99
$ 106.25
Kubernetes for Serverless Applications Book Cover
Kubernetes for Serverless Applications
$ 35.99
$ 25.20