]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_sizers.i
Added some info panels that show size and colour attributes about the widget
[wxWidgets.git] / wxPython / src / _sizers.i
index bf9aeaeaebec0e440ae660866b646dca4f490ed6..6940696e43fbcf0c9e850cea1e2e8c7b863515f9 100644 (file)
@@ -350,7 +350,9 @@ public:
 
     %extend {
         void Show(PyObject* item, bool show = True) {
 
     %extend {
         void Show(PyObject* item, bool show = True) {
+            bool blocked = wxPyBeginBlockThreads();
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
+            wxPyEndBlockThreads(blocked);
             if ( info.window )
                 self->Show(info.window, show);
             else if ( info.sizer )
             if ( info.window )
                 self->Show(info.window, show);
             else if ( info.sizer )
@@ -359,7 +361,9 @@ public:
 
         
         void Hide(PyObject* item) {
 
         
         void Hide(PyObject* item) {
+            bool blocked = wxPyBeginBlockThreads();
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
+            wxPyEndBlockThreads(blocked);
             if ( info.window )
                 self->Hide(info.window);
             else if ( info.sizer )
             if ( info.window )
                 self->Hide(info.window);
             else if ( info.sizer )
@@ -368,7 +372,9 @@ public:
 
         
         bool IsShown(PyObject* item) {
 
         
         bool IsShown(PyObject* item) {
+            bool blocked = wxPyBeginBlockThreads();
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
             wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
+            wxPyEndBlockThreads(blocked);
             if ( info.window ) 
                 return self->IsShown(info.window);
             else if ( info.sizer ) 
             if ( info.window ) 
                 return self->IsShown(info.window);
             else if ( info.sizer )