Optimization is a vast topic, and there is a lot that you can do. If you are interested in knowing more about code optimization, you can start with the official Python optimization tips that are available at http://wiki.python.org/moin/PythonSpeed/PerformanceTips.
Other optimization tips
Get Tkinter GUI Application Development Blueprints - Second Edition 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.