TabFrame is an interesting case. It’s important that all child pages of the multi-notebook control are all actually children of that control (and not grandchildren). TabFrame facilitates this. There is one instance of TabFrame for each tab control inside the multi-notebook.
It’s important to know that TabFrame is not a real window, but it merely used to capture the dimensions/positioning of the internal tab control and it’s managed page windows.
__init__ |
Default class constructor. |
DoGetClientSize |
Returns the window client size. |
DoGetSize |
Returns the window size. |
DoSetSize |
Sets the position and size of the window in pixels. The flags |
DoSizing |
Does the actual sizing of the tab control. |
SetTabCtrlHeight |
Sets the tab control height. |
Show |
Shows/hides the window. |
Update |
Calling this method immediately repaints the invalidated area of the window |
TabFrame
(wx.Window)¶TabFrame is an interesting case. It’s important that all child pages of the multi-notebook control are all actually children of that control (and not grandchildren). TabFrame facilitates this. There is one instance of TabFrame for each tab control inside the multi-notebook.
It’s important to know that TabFrame is not a real window, but it merely used to capture the dimensions/positioning of the internal tab control and it’s managed page windows.
__init__
(self, parent)¶Default class constructor. Used internally, do not call it in your code!
DoGetClientSize
(self)¶Returns the window client size.
Note
Overridden from wx.Control
.
DoGetSize
(self)¶Returns the window size.
Note
Overridden from wx.Control
.
DoSetSize
(self, x, y, width, height, flags=wx.SIZE_AUTO)¶Sets the position and size of the window in pixels. The flags parameter indicates the interpretation of the other params if they are equal to -1.
Parameters: |
|
---|
Note
Overridden from wx.Control
.
DoSizing
(self)¶Does the actual sizing of the tab control.
SetTabCtrlHeight
(self, h)¶Sets the tab control height.
Parameters: | h (integer) – the tab area height. |
---|
Show
(self, show=True)¶Shows/hides the window.
Parameters: | show (bool) – True to show the window, False otherwise. |
---|
Note
Overridden from wx.Control
, this method always returns False
as
TabFrame
should never be phisically shown on screen.
Update
(self)¶Calling this method immediately repaints the invalidated area of the window and all of its children recursively while this would usually only happen when the flow of control returns to the event loop.
Note
Notice that this function doesn’t invalidate any area of the window so
nothing happens if nothing has been invalidated (i.e. marked as requiring a redraw).
Use Refresh
first if you want to immediately redraw the window unconditionally.
Note
Overridden from wx.Control
.