O'Reilly logo

Tkinter GUI Application Development HOTSHOT by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tips for code cleanup and program optimization

Let's now spend some time discussing the tips and tricks that will help improve the performance of our Python program. In a normal case scenario of GUI programming, this generally involves speeding up sections of program that contribute to improving the overall user experience.

Program optimization is often obsessively taken as an exercise in reducing code execution time. For programs where timing is a crucial factor, this obsession is genuine. However, if you are developing a simple GUI application, a correct and consistent user experience is generally more important than mere fast user experience.

Trying to optimize a code even before it is functional is premature optimization and should be avoided. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required