- Tkinter GUI Application Development Cookbook
- Alejandro Rodas de Paz
- 97字
- 2021-08-27 19:44:07
Grouping widgets with frames
A frame represents a rectangular region of a window, typically used in complex layouts to contain other widgets. Since they have their own padding, border, and background, you can remark that the group of widgets is related logically.
Another common pattern for frames is to encapsulate part of the application's functionality so that you can create an abstraction that hides the implementation details of child widgets.
We will see an example that covers both scenarios by creating a component that inherits from the Frame class and exposes certain information on the containing widgets.
推薦閱讀
- JavaScript修煉之道
- Learning Data Mining with Python
- .NET 4.0面向對象編程漫談:基礎篇
- Cassandra Design Patterns(Second Edition)
- Visual FoxPro程序設計
- Node.js Design Patterns
- Learning Concurrent Programming in Scala
- Webpack實戰:入門、進階與調優
- Web前端應用開發技術
- Go語言編程
- Orleans:構建高性能分布式Actor服務
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- Elasticsearch Essentials
- 多媒體技術及應用
- JavaScript Concurrency