62 x0, y0 = self.GetPosition()
63 dx, dy = self.GetSize()
66 dx = HorizontalFlowSizer._DEFAUL_WIDTH
68 HorizontalFlowSizer._DEFAUL_WIDTH = dx
73 for item
in self.GetChildren():
74 idx, idy = item.CalcMin()
75 expand = item.GetFlag() & wx.EXPAND
76 if (x > x0)
and ((x + idx) > x_border):
80 cur_max = max(idy, cur_max)
87 item.SetDimension(wx.Point(x, y), wx.Size(idx, idy))
91 newheight = y + mdy + sdy - y0
92 if newheight != self.
_height_height:
98 frame = self.GetContainingWindow().GetTopLevelParent()
99 frame.ProcessEvent(wx.SizeEvent(frame.Size, frame.Id))
107 return dx
in [0, 94, 100]
A sizer which lays out component left to right top to bottom.
def CalcMin(self)
Calculates the minimum size needed by the sizer.
def RecalcSizes(self)
Layout the contents of the sizer based on the sizer's current size and position.
def _is_error_width(self, dx)
def _send_resize_event(self)
def __init__(self)
Initializes the object: