]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkKW.cxx
KWWidgets support
[bbtk.git] / kernel / src / bbtkKW.cxx
index f4eb6fcd5d31276d505753d9d92bb2fe3446fb7b..cf88699327d7fbb24cf8db5714a7cf660b1551b9 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkKW.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/29 21:41:32 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/12/02 08:38:08 $
+  Version:   $Revision: 1.2 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -39,6 +39,9 @@
 #include "vtkMultiThreader.h"
 
 #include <ctime>
+
+extern "C" int Bbtk_Init(Tcl_Interp *interp);
+
 namespace bbtk
 {
 
@@ -113,6 +116,9 @@ namespace bbtk
        mgKWApp = vtkKWApplication::New();
        mgKWApp->SetName("bbtk");
 
+       Bbtk_Init(interp);
+
+
        /*
        if (mgMultiThreader == 0)
          {
@@ -126,7 +132,7 @@ namespace bbtk
        */
 
        // Dies as soon as it starts because no window at this point !!!
-       mgKWApp->Start();
+       //      mgKWApp->Start();
 
        /*
        clock_t endwait;