]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBox.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkBlackBox.cxx
index 8be7d01d0e3a283d659957fcf63f6284a8dbb7ba..9eb65e2c30f97e768a500843947362d000f37475 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/03/30 14:42:16 $
-  Version:   $Revision: 1.41 $
+  Date:      $Date: 2009/04/08 07:56:11 $
+  Version:   $Revision: 1.42 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -40,6 +40,7 @@
 
 #include "bbtkConfigurationFile.h"
 #include "bbtkWxBlackBox.h"
+#include "bbtkWx.h"
 
 #include <fstream>
 //#include <vector>
@@ -770,9 +771,10 @@ namespace bbtk
     bbSetExecuting(true);
     bool wasExecuting = bbGlobalGetSomeBoxExecuting();
     bbGlobalSetSomeBoxExecuting(true);
-
-       this->bbCreateWidget();
-
+    
+    // Creates the window if the black box has one
+    this->bbCreateWindow();
+    
     // Updates its inputs
     IOStatus s = bbUpdateInputs();
     
@@ -809,7 +811,8 @@ namespace bbtk
                         <<std::endl);
       }
 
-         this->bbShowWidget(); 
+    // Shows the window if the black box has one
+    this->bbShowWindow(); 
 
          
     bbtkDebugMessage("process",3,