]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbi/bbi.cxx
* Created an invisible frame child of WxConsole to be temporary parent of all widgets...
[bbtk.git] / kernel / appli / bbi / bbi.cxx
index 3a7368b4a4c4500a3207d06754cd9fb900076954..5404d6ed728a4ba44742118a2cb544df780288f8 100644 (file)
@@ -128,7 +128,7 @@ bool wxBBIApp::OnInit( )
   if (debug) bbtk::MessageManager::SetMessageLevel("All",9);
   
 
-  bbtk::WxConsole *I = new bbtk::WxConsole(0,_T("bbi"),wxSize(600,400));
+  bbtk::WxConsole *I = new bbtk::WxConsole(0,_T("bbi"),wxSize(800,600));
   SetTopWindow(I);  
   if (!no_command) I->Show(true);
 
@@ -144,8 +144,11 @@ bool wxBBIApp::OnInit( )
   for (i=input_file.begin(); i!=input_file.end(); ++i) I->InterpretFile(*i);
   I->SetNoExecMode(false);
 
-  if (help_on_script) bbtk::HelpBlackBox("workspace",false);
-
+  if (help_on_script) 
+    {
+      std::string package; 
+      I->GetInterpreter()->GetExecuter()->GetFactory()->HelpBlackBox("workspace",package,false);
+    }
   if (!(command || bbtk::Wx::IsSomeWindowShown() ))
     {
       I->Close();