const wxTreeItemId& GetId();
void SetId(const wxTreeItemId& id);
- %pythonAppend Destroy "args[0].thisown = 0"
+ %pythonPrepend Destroy "args[0].this.own(False)"
%extend { void Destroy() { delete self; } }
%property(Data, GetData, SetData, doc="See `GetData` and `SetData`");
%rename(TreeCtrl) wxPyTreeCtrl;
class wxPyTreeCtrl : public wxControl {
public:
- %pythonAppend wxPyTreeCtrl "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)"
+ %pythonAppend wxPyTreeCtrl "self._setOORInfo(self);" setCallbackInfo(TreeCtrl)
%pythonAppend wxPyTreeCtrl() ""
%typemap(out) wxPyTreeCtrl*; // turn off this typemap
// is item text in bold font?
bool IsBold(const wxTreeItemId& item) const;
+ // is the control empty?
+ bool IsEmpty() const;
+
// if 'recursively' is False, only immediate children count, otherwise
// the returned number is the number of all items in this branch
// collapse the item without removing its children
void Collapse(const wxTreeItemId& item);
+ // collapse the item and all its childs and thats childs
+ void CollapseAllChildren(const wxTreeItemId& item);
+
+ // collapse all items
+ void CollapseAll();
+
// collapse the item and remove all children
void CollapseAndReset(const wxTreeItemId& item);