---
# System prepended metadata

title: 'Layout: FlexGridSizer'
tags: [wxPython]

---

Layout: FlexGridSizer
===

原範例

![](https://i.imgur.com/RsDUMI3.png)


若將以下兩行註解掉，觀察變化

```python
fgs.AddGrowableRow(2, 1) # 針對row2做縮放
fgs.AddGrowableCol(1, 1) # 針對col1做縮放
```



![](https://i.imgur.com/1He05IT.png)


![](https://i.imgur.com/c4L1wDz.png)


## Ref.

[ch](https://iowiki.com/wxpython/wx\_flexigridsizer.html)

[en](https://www.tutorialspoint.com/wxpython/wx\_flexigridsizer.htm)



###### tags: `wxPython`