Added some methods to be consistent with wxWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2002-04-17 18:03:45 +00:00
parent 19e30148e1
commit 82550f2324
2 changed files with 17 additions and 0 deletions

View File

@ -245,6 +245,14 @@ class wxSizerPtr(wxObjectPtr):
else:
apply(self.SetItemMinSizeWindow, args)
def GetSizeTuple(self):
return self.GetSize().asTuple()
def GetPositionTuple(self):
return self.GetPosition().asTuple()
def GetMinSizeTuple(self):
return self.GetMinSize().asTuple()
class wxSizer(wxSizerPtr):
def __init__(self,this):
self.this = this

View File

@ -231,6 +231,15 @@ public:
wxPoint GetPosition();
wxSize GetMinSize();
%pragma(python) addtoclass = "
def GetSizeTuple(self):
return self.GetSize().asTuple()
def GetPositionTuple(self):
return self.GetPosition().asTuple()
def GetMinSizeTuple(self):
return self.GetMinSize().asTuple()
"
// void RecalcSizes() = 0;
// wxSize CalcMin() = 0;