diff --git a/include/wx/treebase.h b/include/wx/treebase.h index 9148bd6d27..065432bc69 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -283,7 +283,8 @@ public: // Set the tooltip for the item (for EVT\_TREE\_ITEM\_GETTOOLTIP events) void SetToolTip(const wxString& toolTip) { m_label = toolTip; } - + wxString GetToolTip() { return m_label; } + #if WXWIN_COMPATIBILITY_2_2 // for compatibility only, don't use wxDEPRECATED( int GetCode() const); diff --git a/wxPython/src/_treectrl.i b/wxPython/src/_treectrl.i index e9f9f741dd..f76254f658 100644 --- a/wxPython/src/_treectrl.i +++ b/wxPython/src/_treectrl.i @@ -256,6 +256,7 @@ public: // Set the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events) void SetToolTip(const wxString& toolTip); + wxString GetToolTip(); }; //---------------------------------------------------------------------------