- Tkinter GUI Application Development Cookbook
- Alejandro Rodas de Paz
- 115字
- 2021-08-27 19:43:59
There's more...
We subclassed the Tk class in our example, but it is also common to subclass other widget classes. We did this to reproduce the same statements that we had before we refactored the code.
However, it may be more convenient to subclass Frame or Toplevel in larger programs, such as those with multiple windows. This is because a Tkinter application should have only one Tk instance, and the system creates one automatically if you instantiate a widget before you create the Tk instance.
Keep in mind that this decision does not affect the structure of our App class since all widget classes have a mainloop method that internally starts the Tk main loop.
推薦閱讀
- Learning Single:page Web Application Development
- Implementing VMware Horizon 7(Second Edition)
- Oracle WebLogic Server 12c:First Look
- MySQL數據庫應用與管理 第2版
- R的極客理想:工具篇
- Node.js Design Patterns
- Apache Kafka Quick Start Guide
- 零基礎入門學習Python(第2版)
- Visualforce Developer’s guide
- C語言程序設計
- Learning Unreal Engine Game Development
- Docker:容器與容器云(第2版)
- 現代CPU性能分析與優化
- Test-Driven iOS Development with Swift
- Mastering XenApp?