Added missing Detach method wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
51b2943a50
commit
60a71c29fd
@ -251,6 +251,21 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Detach(PyObject* item) {
|
||||||
|
bool blocked = wxPyBeginBlockThreads();
|
||||||
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
|
||||||
|
wxPyEndBlockThreads(blocked);
|
||||||
|
if ( info.window )
|
||||||
|
return self->Detach(info.window);
|
||||||
|
else if ( info.sizer )
|
||||||
|
return self->Detach(info.sizer);
|
||||||
|
else if ( info.gotPos )
|
||||||
|
return self->Detach(info.pos);
|
||||||
|
else
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void _SetItemMinSize(PyObject* item, const wxSize& size) {
|
void _SetItemMinSize(PyObject* item, const wxSize& size) {
|
||||||
bool blocked = wxPyBeginBlockThreads();
|
bool blocked = wxPyBeginBlockThreads();
|
||||||
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
|
||||||
@ -314,11 +329,11 @@ public:
|
|||||||
|
|
||||||
%pythoncode {
|
%pythoncode {
|
||||||
def GetSizeTuple(self):
|
def GetSizeTuple(self):
|
||||||
return self.GetSize().asTuple()
|
return self.GetSize().Get()
|
||||||
def GetPositionTuple(self):
|
def GetPositionTuple(self):
|
||||||
return self.GetPosition().asTuple()
|
return self.GetPosition().Get()
|
||||||
def GetMinSizeTuple(self):
|
def GetMinSizeTuple(self):
|
||||||
return self.GetMinSize().asTuple()
|
return self.GetMinSize().Get()
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void RecalcSizes();
|
virtual void RecalcSizes();
|
||||||
|
Loading…
Reference in New Issue
Block a user