X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d0918205aae1b1a45267ad7ddfab8eb00185dce..85bc0351f76f6d3f00460a167fc108b900e0725c:/utils/wxPython/src/gtk/controls2.py?ds=sidebyside diff --git a/utils/wxPython/src/gtk/controls2.py b/utils/wxPython/src/gtk/controls2.py index d73387c54b..d983f58a6b 100644 --- a/utils/wxPython/src/gtk/controls2.py +++ b/utils/wxPython/src/gtk/controls2.py @@ -7,6 +7,8 @@ from windows import * from gdi import * +from clip_dnd import * + from events import * from controls import * @@ -399,6 +401,12 @@ class wxTreeCtrlPtr(wxControlPtr): def SetStateImageList(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs) return val + def GetSpacing(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs) + return val + def SetSpacing(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs) + return val def GetItemText(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs) return val @@ -453,10 +461,13 @@ class wxTreeCtrlPtr(wxControlPtr): val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs) if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 return val - def GetParent(self, *_args, **_kwargs): - val = apply(controls2c.wxTreeCtrl_GetParent,(self,) + _args, _kwargs) + def GetItemParent(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs) if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 return val + def GetSelections(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs) + return val def GetChildrenCount(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs) return val @@ -486,6 +497,10 @@ class wxTreeCtrlPtr(wxControlPtr): val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs) if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 return val + def GetLastChild(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs) + if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 + return val def AddRoot(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs) if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 @@ -541,6 +556,9 @@ class wxTreeCtrlPtr(wxControlPtr): def EditLabel(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs) return val + def SortChildren(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs) + return val def SetItemBold(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs) return val @@ -549,7 +567,15 @@ class wxTreeCtrlPtr(wxControlPtr): return val def HitTest(self, *_args, **_kwargs): val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs) - if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 + return val + def SetItemTextColour(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs) + return val + def SetItemBackgroundColour(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs) + return val + def SetItemFont(self, *_args, **_kwargs): + val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,) @@ -626,3 +652,22 @@ wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT +wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal +wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected +wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded +wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded +wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max +wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE +wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW +wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE +wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON +wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON +wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT +wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL +wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT +wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON +wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT +wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT +wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART +wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART +wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM