.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2017 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.HeaderCtrlEvent: ========================================================================================================================================== |phoenix_title| **wx.HeaderCtrlEvent** ========================================================================================================================================== Event class representing the events generated by :ref:`wx.HeaderCtrl`. .. seealso:: :ref:`wx.HeaderCtrl` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;"> <img id="toggleBlock-trigger" src="_static/images/closed.png"/> Inheritance diagram for class <strong>HeaderCtrlEvent</strong>: </div> <div id="toggleBlock-summary" style="display:block;"></div> <div id="toggleBlock-content" style="display:none;"> <p class="graphviz"> <center><img src="_static/images/inheritance/wx.HeaderCtrlEvent_inheritance.png" alt="Inheritance diagram of HeaderCtrlEvent" usemap="#dummy" class="inheritance"/></center> </div> <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script> <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Event.html" title="An event is a structure holding information about an event passed to a callback or member function." alt="" coords="39,83,118,112"/> <area shape="rect" id="node3" href="wx.CommandEvent.html" title="This event class contains information about command events, which originate from a variety of simple controls." alt="" coords="6,160,151,189"/> <area shape="rect" id="node2" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="37,5,120,35"/> <area shape="rect" id="node5" href="wx.NotifyEvent.html" title="This class is not used by the event handlers by itself, but is a base class for other event classes (such as wx.BookCtrlEvent)." alt="" coords="21,237,136,267"/> <area shape="rect" id="node4" href="wx.HeaderCtrlEvent.html" title="Event class representing the events generated by wx.HeaderCtrl." alt="" coords="5,315,152,344"/> </map> </p> | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.HeaderCtrlEvent.__init__` :meth:`~wx.HeaderCtrlEvent.GetColumn` Return the index of the column affected by this event. :meth:`~wx.HeaderCtrlEvent.GetNewOrder` Return the new order of the column. :meth:`~wx.HeaderCtrlEvent.GetWidth` Return the current width of the column. :meth:`~wx.HeaderCtrlEvent.SetColumn` :meth:`~wx.HeaderCtrlEvent.SetNewOrder` :meth:`~wx.HeaderCtrlEvent.SetWidth` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.HeaderCtrlEvent.Column` See :meth:`~wx.HeaderCtrlEvent.GetColumn` and :meth:`~wx.HeaderCtrlEvent.SetColumn` :attr:`~wx.HeaderCtrlEvent.NewOrder` See :meth:`~wx.HeaderCtrlEvent.GetNewOrder` and :meth:`~wx.HeaderCtrlEvent.SetNewOrder` :attr:`~wx.HeaderCtrlEvent.Width` See :meth:`~wx.HeaderCtrlEvent.GetWidth` and :meth:`~wx.HeaderCtrlEvent.SetWidth` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.HeaderCtrlEvent(NotifyEvent) **Possible constructors**:: HeaderCtrlEvent(commandType=wxEVT_NULL, winid=0) HeaderCtrlEvent(event) Event class representing the events generated by HeaderCtrl. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: **~~~** **__init__** `(self, commandType=wxEVT_NULL, winid=0)` :param `commandType`: :type `commandType`: wx.EventType :param `winid`: :type `winid`: int **~~~** **__init__** `(self, event)` :param `event`: :type `event`: wx.HeaderCtrlEvent **~~~** .. method:: GetColumn(self) Return the index of the column affected by this event. This method can be called for all header control events. :rtype: `int` .. method:: GetNewOrder(self) Return the new order of the column. This method can only be called for a reorder event for which it indicates the tentative new position for the column :meth:`GetColumn` selected by the user. If the event is not vetoed, this will become the new column position in :meth:`wx.HeaderCtrl.GetColumnsOrder` . :rtype: `int` .. method:: GetWidth(self) Return the current width of the column. This method can only be called for the dragging events. :rtype: `int` .. method:: SetColumn(self, col) :param `col`: :type `col`: int .. method:: SetNewOrder(self, order) :param `order`: :type `order`: int .. method:: SetWidth(self, width) :param `width`: :type `width`: int .. attribute:: Column See :meth:`~wx.HeaderCtrlEvent.GetColumn` and :meth:`~wx.HeaderCtrlEvent.SetColumn` .. attribute:: NewOrder See :meth:`~wx.HeaderCtrlEvent.GetNewOrder` and :meth:`~wx.HeaderCtrlEvent.SetNewOrder` .. attribute:: Width See :meth:`~wx.HeaderCtrlEvent.GetWidth` and :meth:`~wx.HeaderCtrlEvent.SetWidth`