Python GUI Programming Solutions

Python GUI Programming Solutions

English | 2016 | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 6 Hours | 1.48 GB

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

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.

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
Table of Contents

Creating the GUI Form and Adding Widgets
01. Introduction to Python GUI
02. Adding a Label to the GUI Form
03. Creating Buttons and Text Box Widgets
04. Exploring Widgets
05. Adding Extra Features
06. Adding Several Widgets in a Loop

Layout Management
07. Arranging Several Labels within a Label Frame
08. Using Padding to Add Space Around Widgets
09. Expanding the GUI Dynamically Using Widgets
10. Aligning the GUI Widgets by Embedding Frames within Frames
11. Creating Menu Bars
12. Creating Tabbed Widgets
13. Using the Grid Layout Manager

Look and Feel Customization
14. Creating Message Boxes
15. Creating Independent Message Boxes
16. Creating the Title and Icon of the Main Root Window
17. Using a Spinbox Control
18. Creating Tooltips and Using the Canvas Widget

Data and Classes
19. Using the StringVar() Type
20. Using Module-Level Global Variables
21. Improving the GUI by Coding in Classes
22. Creating Reusable GUI Components

Matplotlib Charts
23. Creating Beautiful Charts Using Matplotlib
24. Downloading Modules for Matplotlib
25. Creating Our First Chart
26. Placing Labels on Charts
27. Giving the Chart a Legend
28. Scaling Charts
29. Adjusting the Scale Dynamically

Threads and Networking
30. Creating Multiple Threads
31. Starting a Thread
32. Stopping a Thread
33. Using Queues
34. Passing Queues among Different Modules
35. Using Dialog Widgets to Copy Files to Your Network
36. Using TCP-IP to Communicate via Networks
37. Using URLOpen to Read Data from Websites

Storing Data in Our MySQL Database via Our GUI
38. Connecting to a MySQL Database from Python
39. Configuring the MySQL Connection
40. Designing the Python GUI Database
41. Using the SQL INSERT Command
42. Using the SQL UPDATE Command
43. Using the SQL DELETE Command

Internationalization and Testing
44. Displaying Widget Text in Different Languages
45. Changing the Entire GUI Language All at Once
46. Localizing the GUI
47. Preparing the GUI for Internationalization
48. Designing a GUI in an Agile Fashion
49. Do We Need to Test the GUI Code
50. Setting Debug Watches
51. Configuring Different Debug Output Levels
52. Creating Self-Testing Code Using Python-s __main__ Section
53. Creating Robust GUIs Using Unit Tests
54. Writing Unit Tests Using the Eclipse PyDev IDE

Extending Our GUI with the wxPython Library
55. Installing the wxPython Library
56. Creating Our GUI
57. Adding Controls
58. Embedding the tkinter and wxPython GUIs into Each Other
60. Communicating Between the Two Connected GUIs

Creating Amazing 3D GUIs with PyOpenGL and Pyglet
61. PyOpenGL Transforms Our GUI
62. Our GUI in 3D
63. Pyglet Transforms Our GUI More Easily Than PyOpenGL
64. Creating a Slideshow Using tkinter

Best Practices
65. Avoiding Spaghetti Code
66. Using __init__ to Connect Modules
67. Mixing Fall-Down and OOP Coding
68. When Not to Use OOP
69. Using Design Patterns Successfully
70. Avoiding Complexity