wx.html.HtmlCellEvent¶
This event class is used for the events generated by wx.html.HtmlWindow.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.html.HtmlCellEvent parameter.
EVT_HTML_CELL_HOVER: User moved the mouse over a wx.html.HtmlCell.
EVT_HTML_CELL_CLICKED: User clicked on a wx.html.HtmlCell. When handling this event, remember to use HtmlCell.SetLinkClicked(true) if the cell contains a link.
Class Hierarchy¶
Methods Summary¶
The constructor is not normally used by the user code. |
|
Returns the wx.html.HtmlCellEvent associated with the event. |
|
Returns |
|
Returns the wx.MouseEvent associated with the event. |
|
Returns the wx.Point associated with the event. |
|
Call this function with linkclicked set to |
Properties Summary¶
See |
|
See |
|
See |
|
See |
Class API¶
- class wx.html.HtmlCellEvent(CommandEvent)¶
Possible constructors:
HtmlCellEvent(commandType, id, cell, point, ev) -> None
This event class is used for the events generated by HtmlWindow.
Methods¶
- __init__(self, commandType, id, cell, point, ev)¶
The constructor is not normally used by the user code.
- Parameters:
commandType (wx.EventType)
id (int)
cell (wx.html.HtmlCell)
point (wx.Point)
ev (wx.MouseEvent)
- Return type:
None
- GetCell(self)¶
Returns the wx.html.HtmlCellEvent associated with the event.
- Return type:
- GetLinkClicked(self)¶
Returns
True
if SetLinkClicked(true) has previously been called;False
otherwise.- Return type:
bool
- GetMouseEvent(self)¶
Returns the wx.MouseEvent associated with the event.
- Return type:
- SetLinkClicked(self, linkclicked)¶
Call this function with linkclicked set to
True
if the cell which has been clicked contained a link orFalse
otherwise (which is the default).With this function the event handler can return info to the wx.html.HtmlWindow which sent the event.
- Parameters:
linkclicked (bool)
- Return type:
None
Properties¶
- LinkClicked¶
See
GetLinkClicked
andSetLinkClicked
- MouseEvent¶
See
GetMouseEvent