Chapter 11. Best Practices

In this chapter, we will explore best practices related to our Python GUI.

  • Avoiding spaghetti code
  • Using __init__ to connect modules
  • Mixing fall-down and OOP coding
  • Using a code naming convention
  • When not to use OOP
  • How to use design patterns successfully
  • Avoiding complexity

Introduction

In this chapter, we will explore different best practices that can help us to build our GUI in an efficient way and keep it both maintainable and extendible.

These best practices will also help us to debug our GUI to get it just the way we want it to be.

Get Python GUI Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.