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:
parent
19e30148e1
commit
82550f2324
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user