A list event holds information about events associated with UltimateListCtrl
objects.
wx.lib.agw.ultimatelistctrl.UltimateListEvent
Default class constructor. |
|
Returns the first item which the list control advises us to cache. |
|
Returns the last item (inclusive) which the list control advises us to cache. |
|
Returns the column position: it is only used with |
|
Returns the item data. |
|
Returns the item image. |
|
Returns the item index. |
|
Returns the item itself. |
|
Returns the key code if the event is a keypress event. |
|
Returns the (new) item label for |
|
Returns the item mask. |
|
Returns the position of the mouse pointer if the event is a drag event. |
|
Returns the item text. |
|
Returns |
|
Sets the item editing as cancelled/not cancelled. |
See GetIndex |
CommandListEvent
(wx.PyCommandEvent)¶A list event holds information about events associated with UltimateListCtrl
objects.
__init__
(self, commandTypeOrEvent=None, winid=0)¶Default class constructor. For internal use: do not call it in your code!
commandTypeOrEvent – the event type or another instance of
PyCommandEvent
;
winid – the event identifier.
GetCacheFrom
(self)¶Returns the first item which the list control advises us to cache.
Note
This method is meaningful for EVT_LIST_CACHE_HINT
event only.
GetCacheTo
(self)¶Returns the last item (inclusive) which the list control advises us to cache.
Note
This method is meaningful for EVT_LIST_CACHE_HINT
event only.
GetColumn
(self)¶Returns the column position: it is only used with COL
events.
For the column dragging events, it is the column to the left of the divider being dragged, for the column click events it may be -1 if the user clicked in the list control header outside any column.
GetData
(self)¶Returns the item data.
GetImage
(self)¶Returns the item image.
GetIndex
(self)¶Returns the item index.
GetItem
(self)¶Returns the item itself.
GetKeyCode
(self)¶Returns the key code if the event is a keypress event.
GetLabel
(self)¶Returns the (new) item label for EVT_LIST_END_LABEL_EDIT
event.
GetMask
(self)¶Returns the item mask.
GetPoint
(self)¶Returns the position of the mouse pointer if the event is a drag event.
GetText
(self)¶Returns the item text.
IsEditCancelled
(self)¶Returns True
if it the label editing has been cancelled by the user
( GetLabel
returns an empty string in this case but it doesn’t allow
the application to distinguish between really cancelling the edit and
the admittedly rare case when the user wants to rename it to an empty
string).
Note
This method only makes sense for EVT_LIST_END_LABEL_EDIT
messages.
SetEditCanceled
(self, editCancelled)¶Sets the item editing as cancelled/not cancelled.
editCancelled – True
to set the item editing as cancelled, False
otherwise.
Note
This method only makes sense for EVT_LIST_END_LABEL_EDIT
messages.