官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 大安市| 微山县| 琼中| 荣成市| 广宁县| 民权县| 呼玛县| 大同县| 门源| 灌阳县| 兴山县| 乌兰察布市| 长海县| 徐闻县| 泰州市| 巴青县| 六安市| 东辽县| 荥经县| 棋牌| 枝江市| 泗洪县| 忻城县| 融水| 金溪县| 信宜市| 新龙县| 青铜峡市| 分宜县| 修水县| 东阿县| 津市市| 始兴县| 新龙县| 东安县| 梓潼县| 漳平市| 溧水县| 衡水市| 屯留县| 桦南县|