X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..7b7ac0ab51dd4571b752d14c7af2443839ff85bb:/wxPython/src/controls2.i diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index 871049d0cf..71723b4794 100644 --- a/wxPython/src/controls2.i +++ b/wxPython/src/controls2.i @@ -64,7 +64,7 @@ enum { wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxEVT_COMMAND_LIST_COL_DRAGGING, wxEVT_COMMAND_LIST_COL_END_DRAG, - + wxEVT_COMMAND_LIST_ITEM_FOCUSED, }; @@ -131,6 +131,9 @@ def EVT_LIST_ITEM_ACTIVATED(win, id, func): def EVT_LIST_CACHE_HINT(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_CACHE_HINT, func) + +def EVT_LIST_ITEM_FOCUSED(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_FOCUSED, func) " @@ -329,19 +332,15 @@ public: wxListEvent(wxEventType commandType = wxEVT_NULL, int id = 0); int m_code; - long m_itemIndex; long m_oldItemIndex; + long m_itemIndex; int m_col; - bool m_cancelled; wxPoint m_pointDrag; wxListItem m_item; int GetCode(); long GetIndex(); - long GetOldIndex(); - long GetOldItem(); int GetColumn(); - bool Cancelled(); wxPoint GetPoint(); const wxString& GetLabel(); const wxString& GetText(); @@ -414,7 +413,7 @@ public: %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxListCtrl)" %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreListCtrl:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreListCtrl:val._setOORInfo(val)" // Set the control colours bool SetForegroundColour(const wxColour& col); @@ -517,7 +516,7 @@ public: int GetItemCount() const; // Gets the number of columns in the list control - int GetColumnCount() const { return m_colCount; } + int GetColumnCount() const; // Retrieves the spacing between icons in pixels. // If small is TRUE, gets the spacing for the small icon @@ -734,7 +733,7 @@ public: const wxString &name = "listctrl" ); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreListView:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreListView:val._setOORInfo(val)" // [de]select an item void Select(long n, bool on = TRUE); @@ -1064,7 +1063,7 @@ public: %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxTreeCtrl)" %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreTreeCtrl:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreTreeCtrl:val._setOORInfo(val)" size_t GetCount(); unsigned int GetIndent();