Python Tkinter Tutorial (Part 2): Using Classes for Functionality and Organization

Published: 15 August 2024
on channel: Corey Schafer
27,907
1k

In this Python Tkinter Tutorial, we'll explore the importance of using classes when working with Tkinter in Python. While many tutorials introduce classes later on, I believe it's essential to start with them right away to avoid common pitfalls and simplify your code. We'll walk through refactoring a basic Tkinter application to use classes, demonstrating how this approach leads to cleaner, more maintainable code. Whether you're building small apps or planning for larger projects, this video will show you how to organize your GUI applications effectively.

The code from this video can be found at:
https://gist.github.com/09ac42ad88a3c...

Python Classes/Object-Oriented Series:
   • Python OOP Tutorials - Working with C...  

"If _name_ == __main__" Video:
   • Python Tutorial: if __name__ == '__ma...  

✅ Support My Channel Through Patreon:
  / coreyms  

✅ Become a Channel Member:
   / @coreyms  

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel -    / coreymschafer  
Facebook -   / coreymschafer  
Twitter -   / coreymschafer  
Instagram -   / coreymschafer  

#Python #TKinter