Inheritance diagram for wx.GridBagSizer:
A wx.Sizer that can lay out items in a virtual grid like a wx.FlexGridSizer but in this case explicit positioning of the items is allowed using wx.GBPosition, and items can optionally span more than one row and/or column using wx.GBSpan.
Constructor, with optional parameters to specify the gap between the rows and columns.
Parameters:
Returns:
Adds an item to the sizer at the grid cell pos, optionally spanning more than one row or column as specified with span.
The remaining args behave similarly to wx.Sizer.Add.
Returns True if the item was successfully placed at the given cell position, False if something was already there.
Parameters:
Returns:
Add an item to the sizer using a wx.GBSizerItem.
Returns True if the item was successfully placed at the given cell position, False if something was already there.
Parameters:
Returns:
Look at all items and see if any intersect (or would overlap) the given item. Returns True if so, False if there would be no overlap. If an excludeItem is given then it will not be checked for intersection, for example it may be the item we are checking the position of.
Parameters:
Returns:
bool
Look at all items and see if any intersect (or would overlap) the given position and span. Returns True if so, False if there would be no overlap. If an excludeItem is given then it will not be checked for intersection, for example it may be the item we are checking the position of.
Parameters:
Returns:
bool
Find the sizer item for the given window or subsizer, returns None if not found.
Parameters:
Returns:
Note
this function is non-recursive.
Return the sizer item located at the point given in pt, or None if there is no item at that point. The (x, y) coordinates in pt correspond to the client coordinates of the window using the sizer for layout.
Parameters:
Returns:
Note
this function is non-recursive.
Return the sizer item for the given grid cell, or None if there is no item at that position.
Parameters:
Returns:
Note
this function is non-recursive.
Get the size of the specified cell, including hgap and vgap. Only valid after a Layout().
Parameters:
Returns:
Get the grid position of the specified item where item is either a window or subsizer that is a member of this sizer, or a zero-based index of an item.
Parameters:
Returns:
Get the row/col spanning of the specified item where item is either a window or subsizer that is a member of this sizer, or a zero-based index of an item.
Parameters:
Returns:
Set the size used for cells in the grid with no item.
Parameters:
Set the grid position of the specified item where item is either a window or subsizer that is a member of this sizer, or a zero-based index of an item.
Returns True on success. If the move is not allowed (because an item is already there) then False is returned.
Parameters:
Returns:
bool
Set the row/col spanning of the specified item where item is either a window or subsizer that is a member of this sizer, or a zero-based index of an item.
Returns True on success. If the move is not allowed (because an item is already there) then False is returned.
Parameters:
Returns:
bool