wx._controls.ListCtrl
Proxy of C++ ListCtrl class
Inherits: wx._core.Control

Append(self, entry, i, pos, cvtfunc)
Append an item to the list control. The entry parameter should be a sequence with an item for each column

Arrange(args, kwargs)
Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool

AssignImageList(args, kwargs)
AssignImageList(self, ImageList imageList, int which)

ClearAll(args, kwargs)
ClearAll(self)

ClearColumnImage(self, col)
None

Create(args, kwargs)
Create(self, Window parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=LC_ICON, Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool Do the 2nd phase and create the GUI control.

DeleteAllColumns(args, kwargs)
DeleteAllColumns(self) -> bool

DeleteAllItems(args, kwargs)
DeleteAllItems(self) -> bool

DeleteColumn(args, kwargs)
DeleteColumn(self, int col) -> bool

DeleteItem(args, kwargs)
DeleteItem(self, long item) -> bool

EditLabel(args, kwargs)
EditLabel(self, long item) -> TextCtrl

EndEditLabel(args, kwargs)
EndEditLabel(self, bool cancel) -> bool

EnsureVisible(args, kwargs)
EnsureVisible(self, long item) -> bool

FindItem(args, kwargs)
FindItem(self, long start, String str, bool partial=False) -> long

FindItemAtPos(args, kwargs)
FindItemAtPos(self, long start, Point pt, int direction) -> long

FindItemData(args, kwargs)
FindItemData(self, long start, long data) -> long

Focus(self, idx)
Focus and show the given item

GetClassDefaultAttributes
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes. The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See `wx.Window.SetWindowVariant` for more about this.

GetColumn(args, kwargs, val)
GetColumn(self, int col) -> ListItem

GetColumnCount(args, kwargs)
GetColumnCount(self) -> int

GetColumnWidth(args, kwargs)
GetColumnWidth(self, int col) -> int

GetCountPerPage(args, kwargs)
GetCountPerPage(self) -> int

GetEditControl(args, kwargs)
GetEditControl(self) -> TextCtrl

GetFirstSelected(self, args)
return first selected item, or -1 when none

GetFocusedItem(self)
get the currently focused item or -1 if none

GetImageList(args, kwargs)
GetImageList(self, int which) -> ImageList

GetItem(args, kwargs, val)
GetItem(self, long itemId, int col=0) -> ListItem

GetItemBackgroundColour(args, kwargs)
GetItemBackgroundColour(self, long item) -> Colour

GetItemCount(args, kwargs)
GetItemCount(self) -> int

GetItemData(args, kwargs)
GetItemData(self, long item) -> long

GetItemPosition(args, kwargs)
GetItemPosition(self, long item) -> Point

GetItemRect(args, kwargs)
GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect

GetItemSpacing(args, kwargs)
GetItemSpacing(self) -> Size

GetItemState(args, kwargs)
GetItemState(self, long item, long stateMask) -> int

GetItemText(args, kwargs)
GetItemText(self, long item) -> String

GetItemTextColour(args, kwargs)
GetItemTextColour(self, long item) -> Colour

GetMainWindow(args, kwargs)
GetMainWindow(self) -> Window

GetNextItem(args, kwargs)
GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long

GetNextSelected(self, item)
return subsequent selected items, or -1 when no more

GetSelectedItemCount(args, kwargs)
GetSelectedItemCount(self) -> int

GetTextColour(args, kwargs)
GetTextColour(self) -> Colour

GetTopItem(args, kwargs)
GetTopItem(self) -> long

GetViewRect(args, kwargs)
GetViewRect(self) -> Rect

HitTest(args, kwargs)
HitTest(Point point) -> (item, where) Determines which item (if any) is at the specified point, giving in the second return value (see wx.LIST_HITTEST flags.)

InReportView(args, kwargs)
InReportView(self) -> bool

InsertColumn(args, kwargs)
InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, int width=-1) -> long

InsertColumnInfo(args, kwargs)
InsertColumnItem(self, long col, ListItem info) -> long

InsertColumnItem(args, kwargs)
InsertColumnItem(self, long col, ListItem info) -> long

InsertImageItem(args, kwargs)
InsertImageItem(self, long index, int imageIndex) -> long

InsertImageStringItem(args, kwargs)
InsertImageStringItem(self, long index, String label, int imageIndex) -> long

InsertItem(args, kwargs)
InsertItem(self, ListItem info) -> long

InsertStringItem(args, kwargs)
InsertStringItem(self, long index, String label) -> long

IsSelected(self, idx)
return True if the item is selected

IsVirtual(args, kwargs)
IsVirtual(self) -> bool

RefreshItem(args, kwargs)
RefreshItem(self, long item)

RefreshItems(args, kwargs)
RefreshItems(self, long itemFrom, long itemTo)

ScrollList(args, kwargs)
ScrollList(self, int dx, int dy) -> bool

Select(self, idx, on, state)
[de]select an item

SetBackgroundColour(args, kwargs)
SetBackgroundColour(self, Colour col) -> bool Sets the background colour of the window. Returns True if the colour was changed. The background colour is usually painted by the default EVT_ERASE_BACKGROUND event handler function under Windows and automatically under GTK. Using `wx.NullColour` will reset the window to the default background colour. Note that setting the background colour may not cause an immediate refresh, so you may wish to call `ClearBackground` or `Refresh` after calling this function. Using this function will disable attempts to use themes for this window, if the system supports them. Use with care since usually the themes represent the appearance chosen by the user to be used for all applications on the system.

SetColumn(args, kwargs)
SetColumn(self, int col, ListItem item) -> bool

SetColumnImage(self, col, image, item)
None

SetColumnWidth(args, kwargs)
SetColumnWidth(self, int col, int width) -> bool

SetForegroundColour(args, kwargs)
SetForegroundColour(self, Colour col) -> bool Sets the foreground colour of the window. Returns True is the colour was changed. The interpretation of foreground colour is dependent on the window class; it may be the text colour or other colour, or it may not be used at all.

SetImageList(args, kwargs)
SetImageList(self, ImageList imageList, int which)

SetItem(args, kwargs)
SetItem(self, ListItem info) -> bool

SetItemBackgroundColour(args, kwargs)
SetItemBackgroundColour(self, long item, Colour col)

SetItemCount(args, kwargs)
SetItemCount(self, long count)

SetItemData(args, kwargs)
SetItemData(self, long item, long data) -> bool

SetItemImage(args, kwargs)
SetItemImage(self, long item, int image, int selImage=-1) -> bool

SetItemPosition(args, kwargs)
SetItemPosition(self, long item, Point pos) -> bool

SetItemState(args, kwargs)
SetItemState(self, long item, long state, long stateMask) -> bool

SetItemText(args, kwargs)
SetItemText(self, long item, String str)

SetItemTextColour(args, kwargs)
SetItemTextColour(self, long item, Colour col)

SetSingleStyle(args, kwargs)
SetSingleStyle(self, long style, bool add=True)

SetStringItem(args, kwargs)
SetStringItem(self, long index, int col, String label, int imageId=-1) -> long

SetTextColour(args, kwargs)
SetTextColour(self, Colour col)

SetWindowStyleFlag(args, kwargs)
SetWindowStyleFlag(self, long style) Sets the style of the window. Please note that some styles cannot be changed after the window creation and that Refresh() might need to be called after changing the others for the change to take place immediately.

SortItems(args, kwargs)
SortItems(self, PyObject func) -> bool

[constructor]
Usage: classname(arguments)

[member '__doc__']
Documentation for this class

[member '__module__']
The module that this class belongs to

[operator 'repr']
Usage: repr(a)