]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/controls2.py
Changed GetForce -> !CanVeto
[wxWidgets.git] / utils / wxPython / src / msw / controls2.py
index effb64604692ca22585d58618dd32fdabcff1175..1c90b543c50015a15ffb56d199002bd36b55703d 100644 (file)
@@ -10,7 +10,7 @@ from gdi import *
 from events import *
 
 from controls import *
-import wxp
+import wx
 class wxListItemPtr :
     def __init__(self,this):
         self.this = this
@@ -163,6 +163,10 @@ class wxListCtrlPtr(wxControlPtr):
     def EndEditLabel(self,arg0):
         val = controls2c.wxListCtrl_EndEditLabel(self.this,arg0)
         return val
+    def GetEditControl(self):
+        val = controls2c.wxListCtrl_GetEditControl(self.this)
+        val = wxTextCtrlPtr(val)
+        return val
     def EnsureVisible(self,arg0):
         val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
         return val
@@ -184,10 +188,6 @@ class wxListCtrlPtr(wxControlPtr):
     def GetCountPerPage(self):
         val = controls2c.wxListCtrl_GetCountPerPage(self.this)
         return val
-    def GetEditControl(self):
-        val = controls2c.wxListCtrl_GetEditControl(self.this)
-        val = wxTextCtrlPtr(val)
-        return val
     def GetImageList(self,arg0):
         val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
         return val
@@ -232,6 +232,9 @@ class wxListCtrlPtr(wxControlPtr):
         val = wxColourPtr(val)
         val.thisown = 1
         return val
+    def SetTextColour(self,arg0):
+        val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
+        return val
     def GetTopItem(self):
         val = controls2c.wxListCtrl_GetTopItem(self.this)
         return val
@@ -295,9 +298,6 @@ class wxListCtrlPtr(wxControlPtr):
     def SetSingleStyle(self,arg0,*args):
         val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
         return val
-    def SetTextColour(self,arg0):
-        val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
-        return val
     def SetWindowStyleFlag(self,arg0):
         val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
         return val
@@ -313,7 +313,7 @@ class wxListCtrl(wxListCtrlPtr):
         args = tuple(argl)
         self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
         self.thisown = 1
-        wxp._StdWindowCallbacks(self)
+        wx._StdWindowCallbacks(self)
 
 
 
@@ -328,9 +328,6 @@ class wxTreeItemIdPtr :
     def IsOk(self):
         val = controls2c.wxTreeItemId_IsOk(self.this)
         return val
-    def GetId(self):
-        val = controls2c.wxTreeItemId_GetId(self.this)
-        return val
     def __repr__(self):
         return "<C wxTreeItemId instance>"
 class wxTreeItemId(wxTreeItemIdPtr):
@@ -348,10 +345,13 @@ class wxTreeItemDataPtr :
     def __del__(self):
         if self.thisown == 1 :
             controls2c.delete_wxTreeItemData(self.this)
-    def GetItemId(self):
-        val = controls2c.wxTreeItemData_GetItemId(self.this)
+    def GetId(self):
+        val = controls2c.wxTreeItemData_GetId(self.this)
         val = wxTreeItemIdPtr(val)
         return val
+    def SetId(self,arg0):
+        val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
+        return val
     def __repr__(self):
         return "<C wxTreeItemData instance>"
 class wxTreeItemData(wxTreeItemDataPtr):
@@ -446,6 +446,9 @@ class wxTreeCtrlPtr(wxControlPtr):
     def SetItemData(self,arg0,arg1):
         val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
         return val
+    def SetItemHasChildren(self,arg0,*args):
+        val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
+        return val
     def IsVisible(self,arg0):
         val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
         return val
@@ -543,6 +546,9 @@ class wxTreeCtrlPtr(wxControlPtr):
     def Delete(self,arg0):
         val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
         return val
+    def DeleteChildren(self,arg0):
+        val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
+        return val
     def DeleteAllItems(self):
         val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
         return val
@@ -581,8 +587,16 @@ class wxTreeCtrlPtr(wxControlPtr):
     def EndEditLabel(self,arg0,*args):
         val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
         return val
-    def SortChildren(self,arg0):
-        val = controls2c.wxTreeCtrl_SortChildren(self.this,arg0.this)
+    def SetItemBold(self,arg0,*args):
+        val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
+        return val
+    def IsBold(self,arg0):
+        val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
+        return val
+    def HitTest(self,arg0):
+        val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
+        val = wxTreeItemIdPtr(val)
+        val.thisown = 1
         return val
     def __repr__(self):
         return "<C wxTreeCtrl instance>"
@@ -596,7 +610,7 @@ class wxTreeCtrl(wxTreeCtrlPtr):
         args = tuple(argl)
         self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
         self.thisown = 1
-        wxp._StdWindowCallbacks(self)
+        wx._StdWindowCallbacks(self)