.. 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.ribbon.RibbonBarEvent:
==========================================================================================================================================
|phoenix_title| **wx.ribbon.RibbonBarEvent**
==========================================================================================================================================
Event used to indicate various actions relating to a :ref:`wx.ribbon.RibbonBar`.
See :ref:`wx.ribbon.RibbonBar` for available event types.
.. seealso:: :ref:`wx.ribbon.RibbonBar`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
RibbonBarEvent:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.ribbon.RibbonBarEvent.__init__` Constructor.
:meth:`~wx.ribbon.RibbonBarEvent.GetPage` Returns the page being changed to, or being clicked on.
:meth:`~wx.ribbon.RibbonBarEvent.SetPage` Sets the page relating to this event.
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.ribbon.RibbonBarEvent.Page` See :meth:`~wx.ribbon.RibbonBarEvent.GetPage` and :meth:`~wx.ribbon.RibbonBarEvent.SetPage`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.ribbon.RibbonBarEvent(NotifyEvent)
**Possible constructors**::
RibbonBarEvent(command_type: EventType=wxEVT_NULL, win_id: int=0, page:
Optional[RibbonPage]=None) -> None
Event used to indicate various actions relating to a RibbonBar.
.. method:: __init__(self, command_type: EventType=wxEVT_NULL, win_id: int=0, page: Optional[RibbonPage]=None)
Constructor.
:param `command_type`:
:type `command_type`: wx.EventType
:param `win_id`:
:type `win_id`: int
:param `page`:
:type `page`: wx.ribbon.RibbonPage
:rtype: `None`
.. method:: GetPage(self)
Returns the page being changed to, or being clicked on.
:rtype: :ref:`wx.ribbon.RibbonPage`
.. method:: SetPage(self, page : RibbonPage)
Sets the page relating to this event.
:param `page`:
:type `page`: wx.ribbon.RibbonPage
:rtype: `None`
.. attribute:: Page
See :meth:`~wx.ribbon.RibbonBarEvent.GetPage` and :meth:`~wx.ribbon.RibbonBarEvent.SetPage`