]> git.saurik.com Git - wxWidgets.git/commitdiff
some methods missing wxPyBeginBlockThreads/wxPyEndBlockThreads
authorRobin Dunn <robin@alldunn.com>
Sun, 2 May 2004 02:38:53 +0000 (02:38 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 2 May 2004 02:38:53 +0000 (02:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_sizers.i

index bf9aeaeaebec0e440ae660866b646dca4f490ed6..6940696e43fbcf0c9e850cea1e2e8c7b863515f9 100644 (file)
@@ -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 )