Size control of Wxpython Sizeritem
Proportion controls the relative size of the control, proportion if 0, which represents the default size. For example, a box has two identical controls, a, a, B, if the Proportioin is 2 and 1, the size of A and B is 2:1; if there are three identical control a,b,c in a box, their proportion are 0,1,1 respectively. Then a will be the default size (such as a text box with only one line) and b,c the rest of the box.
Wx. EXPAND says space fills all the places it can fill, such as placing a space in a box and adding this style=wx. EXPAND, the control will occupy the entire box space. It is and WX. Left, WX. Right these style mates are used.
1
Wx. all = WX. Left | Wx. Right | Wx. TOP | Wx. BOTTOM
Because Hbox has a proportion of 0, it is the default size in the vertical direction, but can be extended horizontally.
Oh, that Wx.expand | The next one will be wx.all, what does wx.left,wx.right mean?
Wx. Left: Extend to
Wx. Right: Extend to the Left
Wx. Top: extending to the top
Wx. BOTTOM: extending to the bottom
Wx. All: Extend to four directions
Size control of Wxpython Sizeritem