.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.ScrolledWindow:
==========================================================================================================================================
|phoenix_title| **wx.ScrolledWindow**
==========================================================================================================================================
Scrolled window derived from :ref:`wx.Panel`.
See :ref:`wx.Scrolled` for a detailed description.
.. note::
Note that because this class derives from :ref:`wx.Panel`, it shares its behaviour with regard to ``TAB`` traversal and focus handling (in particular, it forwards focus to its children). If you don't want this behaviour, use :ref:`wx.ScrolledCanvas` instead.
.. note::
:ref:`wx.ScrolledWindow` is an alias for ScrolledPanel since version 2.9.0. In older versions, it was a standalone class.
.. seealso:: :ref:`wx.Scrolled`, :ref:`wx.ScrolledCanvas`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
ScrolledWindow:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.ScrolledWindow.__init__`
:meth:`~wx.ScrolledWindow.GetClassDefaultAttributes`
:meth:`~wx.ScrolledWindow.SetFocusIgnoringChildren` In contrast to SetFocus() this will set the focus to the panel even if
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.ScrolledWindow(_ScrolledWindowBase)
**Possible constructors**::
ScrolledWindow() -> None
ScrolledWindow(parent : Window, id: int=ID_ANY, pos:
Point=DefaultPosition, size: Size=DefaultSize, style:
int=ScrolledWindowStyle, name: str=PanelNameStr) -> None
Scrolled window derived from Panel.
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self)`
:rtype: `None`
:html:`
`
**__init__** `(self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=ScrolledWindowStyle, name: str=PanelNameStr)`
:param `parent`:
:type `parent`: wx.Window
:param `id`:
:type `id`: wx.WindowID
:param `pos`:
:type `pos`: :class:`Point`
:param `size`:
:type `size`: :class:`Size`
:param `style`:
:type `style`: long
:param `name`:
:type `name`: :class:`String`
:rtype: `None`
:html:`
`
.. staticmethod:: GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)
:param `variant`:
:type `variant`: wx.WindowVariant
:rtype: :ref:`wx.VisualAttributes`
.. method:: SetFocusIgnoringChildren(self)
In contrast to SetFocus() this will set the focus to the panel even if
there are child windows in the panel. This is only rarely needed.
:rtype: `None`