Grid layout manager:
The grid layout class wx. gridsizer is used to place subwindows or controls in the form of a grid. containers are divided into rectangles of the same size. A subwindow or control is placed in a rectangle.
The wx. gridsizer construction method is as follows:
Wx. gridsizer (rows, cols, vgap, hgap ).
Create the Wx. gridsizer object that specifies the function and number of columns, and specify the horizontal and vertical gaps. The hgap parameter is the horizontal gap. The number of added subwindows or controls cannot exceed the product of rows * cols. Otherwise, an exception may occur.
Wx. gridsizer (rows, cols, gap ).
The same as above. The gap type is ws. Size. For example, wx. Size (2 and 3) sets the horizontal gap to 2 pixels, and the vertical gap to 3 pixels.
Wx. gridsizer (Clos, vgap, hgap ).
Create the Wx. gridsizer object for the specified number of columns and specify the horizontal and vertical gaps. Because there is no limit on the number of rows, there is no limit on the number of subwindows or controls added by S.
Wx. gridsizer (cols, Gap = wx. Size (0, 0 )).
Same as above, but the vertical gap and horizontal gap are wx. size types.
Grid layout manager