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

How it works…

The placement of label_a and label_b is almost self-explanatory: they occupy the first and second rows of the first column, respectively—remember that grid positions are zero-indexed:

To expand label_c and label_d through multiple cells, we will set the rowspan option to 2, so they will span two cells, starting from the position indicated with the row and column options. Finally, we will place label_e with the columnspan option to set it to 3.

It is important to remark that in contrast with the Pack geometry manager, it is possible to change the order of the calls to grid() on each widget without modifying the final layout.

主站蜘蛛池模板: 犍为县| 安岳县| 寿宁县| 深州市| 张北县| 汾阳市| 博湖县| 阿克陶县| 绥滨县| 星座| 河曲县| 柳林县| 涿鹿县| 腾冲县| 湄潭县| 梓潼县| 高州市| 定陶县| 东山县| 宝山区| 庄浪县| 彭州市| 大余县| 平山县| 南京市| 江安县| 苏尼特右旗| 桓仁| 竹溪县| 白银市| 新干县| 临武县| 久治县| 普兰店市| 什邡市| 道孚县| 金塔县| 内丘县| 广丰县| 怀远县| 怀化市|