X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dce2bd223c2370f001f9ca93e04cbd437ff3f988..49bffb1482cd2a6a30b38280f6c9bffc72dbfe42:/wxPython/src/_sizers.i?ds=sidebyside diff --git a/wxPython/src/_sizers.i b/wxPython/src/_sizers.i index bf9aeaeaeb..6940696e43 100644 --- a/wxPython/src/_sizers.i +++ b/wxPython/src/_sizers.i @@ -350,7 +350,9 @@ public: %extend { void Show(PyObject* item, bool show = True) { + bool blocked = wxPyBeginBlockThreads(); wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); + wxPyEndBlockThreads(blocked); if ( info.window ) self->Show(info.window, show); else if ( info.sizer ) @@ -359,7 +361,9 @@ public: void Hide(PyObject* item) { + bool blocked = wxPyBeginBlockThreads(); wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); + wxPyEndBlockThreads(blocked); if ( info.window ) self->Hide(info.window); else if ( info.sizer ) @@ -368,7 +372,9 @@ public: bool IsShown(PyObject* item) { + bool blocked = wxPyBeginBlockThreads(); wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); + wxPyEndBlockThreads(blocked); if ( info.window ) return self->IsShown(info.window); else if ( info.sizer )