+#---------------------------------------------------------------------------
+
+class ListCtrl(core.Control):
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(Window parent, int id=-1, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=LC_ICON,
+ Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
+ """
+ newobj = _controls.new_ListCtrl(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl)
+
+ def Create(*args, **kwargs):
+ """
+ Create(Window parent, int id=-1, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=LC_ICON,
+ Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
+ """
+ return _controls.ListCtrl_Create(*args, **kwargs)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(PyObject self, PyObject _class)"""
+ return _controls.ListCtrl__setCallbackInfo(*args, **kwargs)
+
+ def SetForegroundColour(*args, **kwargs):
+ """SetForegroundColour(Colour col) -> bool"""
+ return _controls.ListCtrl_SetForegroundColour(*args, **kwargs)
+
+ def SetBackgroundColour(*args, **kwargs):
+ """SetBackgroundColour(Colour col) -> bool"""
+ return _controls.ListCtrl_SetBackgroundColour(*args, **kwargs)
+
+ def GetColumn(*args, **kwargs):
+ """GetColumn(int col) -> ListItem"""
+ val = _controls.ListCtrl_GetColumn(*args, **kwargs)
+ if val is not None: val.thisown = 1
+ return val
+
+ def SetColumn(*args, **kwargs):
+ """SetColumn(int col, ListItem item) -> bool"""
+ return _controls.ListCtrl_SetColumn(*args, **kwargs)
+
+ def GetColumnWidth(*args, **kwargs):
+ """GetColumnWidth(int col) -> int"""
+ return _controls.ListCtrl_GetColumnWidth(*args, **kwargs)
+
+ def SetColumnWidth(*args, **kwargs):
+ """SetColumnWidth(int col, int width) -> bool"""
+ return _controls.ListCtrl_SetColumnWidth(*args, **kwargs)
+
+ def GetCountPerPage(*args, **kwargs):
+ """GetCountPerPage() -> int"""
+ return _controls.ListCtrl_GetCountPerPage(*args, **kwargs)
+
+ def GetViewRect(*args, **kwargs):
+ """GetViewRect() -> Rect"""
+ return _controls.ListCtrl_GetViewRect(*args, **kwargs)
+
+ def GetItem(*args, **kwargs):
+ """GetItem(long itemId, int col=0) -> ListItem"""
+ val = _controls.ListCtrl_GetItem(*args, **kwargs)
+ if val is not None: val.thisown = 1
+ return val
+
+ def SetItem(*args, **kwargs):
+ """SetItem(ListItem info) -> bool"""
+ return _controls.ListCtrl_SetItem(*args, **kwargs)
+
+ def SetStringItem(*args, **kwargs):
+ """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
+ return _controls.ListCtrl_SetStringItem(*args, **kwargs)
+
+ def GetItemState(*args, **kwargs):
+ """GetItemState(long item, long stateMask) -> int"""
+ return _controls.ListCtrl_GetItemState(*args, **kwargs)
+
+ def SetItemState(*args, **kwargs):
+ """SetItemState(long item, long state, long stateMask) -> bool"""
+ return _controls.ListCtrl_SetItemState(*args, **kwargs)
+
+ def SetItemImage(*args, **kwargs):
+ """SetItemImage(long item, int image, int selImage) -> bool"""
+ return _controls.ListCtrl_SetItemImage(*args, **kwargs)
+
+ def GetItemText(*args, **kwargs):
+ """GetItemText(long item) -> String"""
+ return _controls.ListCtrl_GetItemText(*args, **kwargs)
+
+ def SetItemText(*args, **kwargs):
+ """SetItemText(long item, String str)"""
+ return _controls.ListCtrl_SetItemText(*args, **kwargs)
+
+ def GetItemData(*args, **kwargs):
+ """GetItemData(long item) -> long"""
+ return _controls.ListCtrl_GetItemData(*args, **kwargs)
+
+ def SetItemData(*args, **kwargs):
+ """SetItemData(long item, long data) -> bool"""
+ return _controls.ListCtrl_SetItemData(*args, **kwargs)
+
+ def GetItemPosition(*args, **kwargs):
+ """GetItemPosition(long item) -> Point"""
+ return _controls.ListCtrl_GetItemPosition(*args, **kwargs)
+
+ def GetItemRect(*args, **kwargs):
+ """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
+ return _controls.ListCtrl_GetItemRect(*args, **kwargs)
+
+ def SetItemPosition(*args, **kwargs):
+ """SetItemPosition(long item, Point pos) -> bool"""
+ return _controls.ListCtrl_SetItemPosition(*args, **kwargs)
+
+ def GetItemCount(*args, **kwargs):
+ """GetItemCount() -> int"""
+ return _controls.ListCtrl_GetItemCount(*args, **kwargs)
+
+ def GetColumnCount(*args, **kwargs):
+ """GetColumnCount() -> int"""
+ return _controls.ListCtrl_GetColumnCount(*args, **kwargs)
+
+ def GetItemSpacing(*args, **kwargs):
+ """GetItemSpacing() -> Size"""
+ return _controls.ListCtrl_GetItemSpacing(*args, **kwargs)
+
+ def SetItemSpacing(*args, **kwargs):
+ """SetItemSpacing(int spacing, bool isSmall=False)"""
+ return _controls.ListCtrl_SetItemSpacing(*args, **kwargs)
+
+ def GetSelectedItemCount(*args, **kwargs):
+ """GetSelectedItemCount() -> int"""
+ return _controls.ListCtrl_GetSelectedItemCount(*args, **kwargs)
+
+ def GetTextColour(*args, **kwargs):
+ """GetTextColour() -> Colour"""
+ return _controls.ListCtrl_GetTextColour(*args, **kwargs)
+
+ def SetTextColour(*args, **kwargs):
+ """SetTextColour(Colour col)"""
+ return _controls.ListCtrl_SetTextColour(*args, **kwargs)
+
+ def GetTopItem(*args, **kwargs):
+ """GetTopItem() -> long"""
+ return _controls.ListCtrl_GetTopItem(*args, **kwargs)
+
+ def SetSingleStyle(*args, **kwargs):
+ """SetSingleStyle(long style, bool add=True)"""
+ return _controls.ListCtrl_SetSingleStyle(*args, **kwargs)
+
+ def SetWindowStyleFlag(*args, **kwargs):
+ """SetWindowStyleFlag(long style)"""
+ return _controls.ListCtrl_SetWindowStyleFlag(*args, **kwargs)
+
+ def GetNextItem(*args, **kwargs):
+ """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
+ return _controls.ListCtrl_GetNextItem(*args, **kwargs)
+
+ def GetImageList(*args, **kwargs):
+ """GetImageList(int which) -> ImageList"""
+ return _controls.ListCtrl_GetImageList(*args, **kwargs)
+
+ def SetImageList(*args, **kwargs):
+ """SetImageList(ImageList imageList, int which)"""
+ return _controls.ListCtrl_SetImageList(*args, **kwargs)
+
+ def AssignImageList(*args, **kwargs):
+ """AssignImageList(ImageList imageList, int which)"""
+ return _controls.ListCtrl_AssignImageList(*args, **kwargs)
+
+ def IsVirtual(*args, **kwargs):
+ """IsVirtual() -> bool"""
+ return _controls.ListCtrl_IsVirtual(*args, **kwargs)
+
+ def RefreshItem(*args, **kwargs):
+ """RefreshItem(long item)"""
+ return _controls.ListCtrl_RefreshItem(*args, **kwargs)
+
+ def RefreshItems(*args, **kwargs):
+ """RefreshItems(long itemFrom, long itemTo)"""
+ return _controls.ListCtrl_RefreshItems(*args, **kwargs)
+
+ def Arrange(*args, **kwargs):
+ """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
+ return _controls.ListCtrl_Arrange(*args, **kwargs)
+
+ def DeleteItem(*args, **kwargs):
+ """DeleteItem(long item) -> bool"""
+ return _controls.ListCtrl_DeleteItem(*args, **kwargs)
+
+ def DeleteAllItems(*args, **kwargs):
+ """DeleteAllItems() -> bool"""
+ return _controls.ListCtrl_DeleteAllItems(*args, **kwargs)
+
+ def DeleteColumn(*args, **kwargs):
+ """DeleteColumn(int col) -> bool"""
+ return _controls.ListCtrl_DeleteColumn(*args, **kwargs)
+
+ def DeleteAllColumns(*args, **kwargs):
+ """DeleteAllColumns() -> bool"""
+ return _controls.ListCtrl_DeleteAllColumns(*args, **kwargs)
+
+ def ClearAll(*args, **kwargs):
+ """ClearAll()"""
+ return _controls.ListCtrl_ClearAll(*args, **kwargs)
+
+ def EditLabel(*args, **kwargs):
+ """EditLabel(long item)"""
+ return _controls.ListCtrl_EditLabel(*args, **kwargs)
+
+ def EnsureVisible(*args, **kwargs):
+ """EnsureVisible(long item) -> bool"""
+ return _controls.ListCtrl_EnsureVisible(*args, **kwargs)
+
+ def FindItem(*args, **kwargs):
+ """FindItem(long start, String str, bool partial=False) -> long"""
+ return _controls.ListCtrl_FindItem(*args, **kwargs)
+
+ def FindItemData(*args, **kwargs):
+ """FindItemData(long start, long data) -> long"""
+ return _controls.ListCtrl_FindItemData(*args, **kwargs)
+
+ def FindItemAtPos(*args, **kwargs):
+ """FindItemAtPos(long start, Point pt, int direction) -> long"""
+ return _controls.ListCtrl_FindItemAtPos(*args, **kwargs)
+
+ def HitTest(*args, **kwargs):
+ """
+ HitTest(Point point) -> (item, where)
+
+ Determines which item (if any) is at the specified point,
+ giving details in the second return value (see wxLIST_HITTEST_... flags.)
+ """
+ return _controls.ListCtrl_HitTest(*args, **kwargs)
+
+ def InsertItem(*args, **kwargs):
+ """InsertItem(ListItem info) -> long"""
+ return _controls.ListCtrl_InsertItem(*args, **kwargs)
+
+ def InsertStringItem(*args, **kwargs):
+ """InsertStringItem(long index, String label) -> long"""
+ return _controls.ListCtrl_InsertStringItem(*args, **kwargs)
+
+ def InsertImageItem(*args, **kwargs):
+ """InsertImageItem(long index, int imageIndex) -> long"""
+ return _controls.ListCtrl_InsertImageItem(*args, **kwargs)
+
+ def InsertImageStringItem(*args, **kwargs):
+ """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
+ return _controls.ListCtrl_InsertImageStringItem(*args, **kwargs)
+
+ def InsertColumnInfo(*args, **kwargs):
+ """InsertColumnInfo(long col, ListItem info) -> long"""
+ return _controls.ListCtrl_InsertColumnInfo(*args, **kwargs)
+
+ def InsertColumn(*args, **kwargs):
+ """
+ InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
+ int width=-1) -> long
+ """
+ return _controls.ListCtrl_InsertColumn(*args, **kwargs)
+
+ def SetItemCount(*args, **kwargs):
+ """SetItemCount(long count)"""
+ return _controls.ListCtrl_SetItemCount(*args, **kwargs)
+
+ def ScrollList(*args, **kwargs):
+ """ScrollList(int dx, int dy) -> bool"""
+ return _controls.ListCtrl_ScrollList(*args, **kwargs)
+
+ def SetItemTextColour(*args, **kwargs):
+ """SetItemTextColour(long item, Colour col)"""
+ return _controls.ListCtrl_SetItemTextColour(*args, **kwargs)
+
+ def GetItemTextColour(*args, **kwargs):
+ """GetItemTextColour(long item) -> Colour"""
+ return _controls.ListCtrl_GetItemTextColour(*args, **kwargs)
+
+ def SetItemBackgroundColour(*args, **kwargs):
+ """SetItemBackgroundColour(long item, Colour col)"""
+ return _controls.ListCtrl_SetItemBackgroundColour(*args, **kwargs)
+
+ def GetItemBackgroundColour(*args, **kwargs):
+ """GetItemBackgroundColour(long item) -> Colour"""
+ return _controls.ListCtrl_GetItemBackgroundColour(*args, **kwargs)