.. 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.grid.GridEditorCreatedEvent:
==========================================================================================================================================
|phoenix_title| **wx.grid.GridEditorCreatedEvent**
==========================================================================================================================================
.. _GridEditorCreatedEvent-events:
|events| Events Emitted by this Class
=====================================
Handlers bound for the following event types will receive a :ref:`wx.grid.GridEditorCreatedEvent` parameter.
- EVT_GRID_EDITOR_CREATED: The editor for a cell was created. Processes a ``wxEVT_GRID_EDITOR_CREATED`` event type.
- EVT_GRID_CMD_EDITOR_CREATED: The editor for a cell was created; variant taking a window identifier. Processes a ``wxEVT_GRID_EDITOR_CREATED`` event type.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
GridEditorCreatedEvent:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.grid.GridEditorCreatedEvent.__init__` Default constructor.
:meth:`~wx.grid.GridEditorCreatedEvent.GetCol` Returns the column at which the event occurred.
:meth:`~wx.grid.GridEditorCreatedEvent.GetControl` Returns the edit control.
:meth:`~wx.grid.GridEditorCreatedEvent.GetRow` Returns the row at which the event occurred.
:meth:`~wx.grid.GridEditorCreatedEvent.GetWindow` Returns the edit window.
:meth:`~wx.grid.GridEditorCreatedEvent.SetCol` Sets the column at which the event occurred.
:meth:`~wx.grid.GridEditorCreatedEvent.SetControl` Sets the edit control.
:meth:`~wx.grid.GridEditorCreatedEvent.SetRow` Sets the row at which the event occurred.
:meth:`~wx.grid.GridEditorCreatedEvent.SetWindow` Sets the edit window.
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.grid.GridEditorCreatedEvent.Col` See :meth:`~wx.grid.GridEditorCreatedEvent.GetCol` and :meth:`~wx.grid.GridEditorCreatedEvent.SetCol`
:attr:`~wx.grid.GridEditorCreatedEvent.Control` See :meth:`~wx.grid.GridEditorCreatedEvent.GetControl` and :meth:`~wx.grid.GridEditorCreatedEvent.SetControl`
:attr:`~wx.grid.GridEditorCreatedEvent.Row` See :meth:`~wx.grid.GridEditorCreatedEvent.GetRow` and :meth:`~wx.grid.GridEditorCreatedEvent.SetRow`
:attr:`~wx.grid.GridEditorCreatedEvent.Window` See :meth:`~wx.grid.GridEditorCreatedEvent.GetWindow` and :meth:`~wx.grid.GridEditorCreatedEvent.SetWindow`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.grid.GridEditorCreatedEvent(CommandEvent)
**Possible constructors**::
GridEditorCreatedEvent() -> None
GridEditorCreatedEvent(id : int, type : EventType, obj : Object, row :
int, col : int, ctrl : Control) -> None
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self)`
Default constructor.
:rtype: `None`
:html:`
`
**__init__** `(self, id : int, type : EventType, obj : Object, row : int, col : int, ctrl : Control)`
Constructor for initializing all event attributes.
:param `id`:
:type `id`: int
:param `type`:
:type `type`: wx.EventType
:param `obj`:
:type `obj`: wx.Object
:param `row`:
:type `row`: int
:param `col`:
:type `col`: int
:param `ctrl`:
:type `ctrl`: wx.Control
:rtype: `None`
:html:`
`
.. method:: GetCol(self)
Returns the column at which the event occurred.
:rtype: `int`
.. method:: GetControl(self)
Returns the edit control.
This function is preserved for compatibility, but :meth:`GetWindow` should be preferred in the new code as the associated window doesn't need to be of a Control-derived class.
Note that if :meth:`SetWindow` had been called with an object not deriving from :ref:`wx.Control`, this method will return ``None``.
:rtype: `Control`
.. method:: GetRow(self)
Returns the row at which the event occurred.
:rtype: `int`
.. method:: GetWindow(self)
Returns the edit window.
:rtype: `Window`
.. versionadded:: 4.1/wxWidgets-3.1.3
.. method:: SetCol(self, col : int)
Sets the column at which the event occurred.
:param `col`:
:type `col`: int
:rtype: `None`
.. method:: SetControl(self, ctrl : Control)
Sets the edit control.
This function is preserved for compatibility, but :meth:`SetWindow` should be preferred in the new code, see :meth:`GetControl` .
:param `ctrl`:
:type `ctrl`: wx.Control
:rtype: `None`
.. method:: SetRow(self, row : int)
Sets the row at which the event occurred.
:param `row`:
:type `row`: int
:rtype: `None`
.. method:: SetWindow(self, window : Window)
Sets the edit window.
:param `window`:
:type `window`: wx.Window
:rtype: `None`
.. versionadded:: 4.1/wxWidgets-3.1.3
.. attribute:: Col
See :meth:`~wx.grid.GridEditorCreatedEvent.GetCol` and :meth:`~wx.grid.GridEditorCreatedEvent.SetCol`
.. attribute:: Control
See :meth:`~wx.grid.GridEditorCreatedEvent.GetControl` and :meth:`~wx.grid.GridEditorCreatedEvent.SetControl`
.. attribute:: Row
See :meth:`~wx.grid.GridEditorCreatedEvent.GetRow` and :meth:`~wx.grid.GridEditorCreatedEvent.SetRow`
.. attribute:: Window
See :meth:`~wx.grid.GridEditorCreatedEvent.GetWindow` and :meth:`~wx.grid.GridEditorCreatedEvent.SetWindow`