This event is sent by wx.adv.LayoutAlgorithm to calculate the amount of the remaining client area that the window should occupy.
Handlers bound for the following event types will receive a wx.adv.CalculateLayoutEvent parameter.
wxEVT_CALCULATE_LAYOUT
event, which asks the window to take a ‘bite’ out of a rectangle provided by the algorithm.__init__ |
Constructor. |
GetFlags |
Returns the flags associated with this event. |
GetRect |
Before the event handler is entered, returns the remaining parent client area that the window could occupy. |
SetFlags |
Sets the flags associated with this event. |
SetRect |
Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted. |
wx.adv.
CalculateLayoutEvent
(Event)¶Possible constructors:
CalculateLayoutEvent(id=0)
This event is sent by LayoutAlgorithm to calculate the amount of the remaining client area that the window should occupy.
__init__
(self, id=0)¶Constructor.
Parameters: | id (wx.WindowID) – |
---|
GetFlags
(self)¶Returns the flags associated with this event.
Not currently used.
Return type: | int |
---|
GetRect
(self)¶Before the event handler is entered, returns the remaining parent client area that the window could occupy.
When the event handler returns, this should contain the remaining parent client rectangle, after the event handler has subtracted the area that its window occupies.
Return type: | Rect |
---|
SetFlags
(self, flags)¶Sets the flags associated with this event.
Not currently used.
Parameters: | flags (int) – |
---|
SetRect
(self, rect)¶Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted.
Parameters: | rect (wx.Rect) – |
---|