GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.Panel — wxPython 4.3.2 Docs
|
Default constructor. |
|
This method is overridden from |
|
Used for two-step panel construction. |
|
Sends a wx.InitDialogEvent, which in turn transfers data to the dialog via validators. |
|
See |
|
Overrides |
|
In contrast to |
Class API¶Possible constructors:
Panel() -> None Panel(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name=PanelNameStr) -> None
A panel is a window on which controls are placed.
__init__ (self)
Default constructor.
None
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name=PanelNameStr)
Constructor.
parent (wx.Window) – The parent window.
id (wx.WindowID) – An identifier for the panel. ID_ANY is taken to mean a default.
pos (wx.Point) – The panel position. The value wx.DefaultPosition indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
size (wx.Size) – The panel size. The value wx.DefaultSize indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
style (long) – The window style. See wx.Panel.
name (string) – Window name.
None
See also
This method is overridden from wx.Window.AcceptsFocus and returns True only if there is no child window in the panel which can accept the focus.
This is reevaluated each time a child window is added or removed from the panel.
bool
Used for two-step panel construction.
See wx.Panel for details.
variant (WindowVariant)
Sends a wx.InitDialogEvent, which in turn transfers data to the dialog via validators.
None
See also
See wx.Window.SetAutoLayout : when auto layout is on, this function gets called automatically when the window is resized.
bool
Overrides wx.Window.SetFocus .
This method uses the (undocumented) mix-in class ControlContainer which manages the focus and TAB logic for controls which usually have child controls.
In practice, if you call this method and the control has at least one child window, the focus will be given to the child window.
None
See also