phoenix_title wx.lib.agw.ultimatelistctrl.CommandListEvent

A list event holds information about events associated with UltimateListCtrl objects.


class_hierarchy Class Hierarchy

Inheritance diagram for class CommandListEvent:

sub_classes Known Subclasses

wx.lib.agw.ultimatelistctrl.UltimateListEvent


super_classes Known Superclasses

wx.PyCommandEvent


method_summary Methods Summary

__init__

Default class constructor.

GetCacheFrom

Returns the first item which the list control advises us to cache.

GetCacheTo

Returns the last item (inclusive) which the list control advises us to cache.

GetColumn

Returns the column position: it is only used with COL events.

GetData

Returns the item data.

GetImage

Returns the item image.

GetIndex

Returns the item index.

GetItem

Returns the item itself.

GetKeyCode

Returns the key code if the event is a keypress event.

GetLabel

Returns the (new) item label for EVT_LIST_END_LABEL_EDIT event.

GetMask

Returns the item mask.

GetPoint

Returns the position of the mouse pointer if the event is a drag event.

GetText

Returns the item text.

IsEditCancelled

Returns True if it the label editing has been cancelled by the user

SetEditCanceled

Sets the item editing as cancelled/not cancelled.


property_summary Properties Summary

Index

See GetIndex


api Class API

class CommandListEvent(wx.PyCommandEvent)

A list event holds information about events associated with UltimateListCtrl objects.


Methods

__init__(self, commandTypeOrEvent=None, winid=0)

Default class constructor. For internal use: do not call it in your code!

Parameters:
  • 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.

Parameters:

editCancelledTrue to set the item editing as cancelled, False otherwise.

Note

This method only makes sense for EVT_LIST_END_LABEL_EDIT messages.


Properties

Index

See GetIndex