.. 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
.. currentmodule:: wx.lib.agw.ribbon.buttonbar
.. highlight:: python
.. _wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent:
==========================================================================================================================================
|phoenix_title| **wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent**
==========================================================================================================================================
Event used to indicate various actions relating to a button on a :class:`RibbonButtonBar`.
.. seealso:: :class:`RibbonButtonBar` for available event types.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
RibbonButtonBarEvent:
|
|super_classes| Known Superclasses
==================================
:class:`wx.PyCommandEvent`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent.__init__` Default class constructor.
:meth:`~wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent.GetBar` Returns the bar which contains the button which the event relates to.
:meth:`~wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent.PopupMenu` Display a popup menu as a result of this (dropdown clicked) event.
:meth:`~wx.lib.agw.ribbon.buttonbar.RibbonButtonBarEvent.SetBar` Sets the button bar relating to this event.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: RibbonButtonBarEvent(wx.PyCommandEvent)
Event used to indicate various actions relating to a button on a :class:`RibbonButtonBar`.
.. seealso:: :class:`RibbonButtonBar` for available event types.
.. method:: __init__(self, command_type=None, win_id=0, bar=None)
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`: the event identifier;
:param `bar`: an instance of :class:`RibbonButtonBar`.
.. method:: GetBar(self)
Returns the bar which contains the button which the event relates to.
:returns: An instance of :class:`RibbonButtonBar`.
.. method:: PopupMenu(self, menu)
Display a popup menu as a result of this (dropdown clicked) event.
:param `menu`: an instance of :class:`wx.Menu`.
.. method:: SetBar(self, bar)
Sets the button bar relating to this event.
:param `bar`: an instance of :class:`RibbonButtonBar`.