mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-14 17:48:34 +05:00
Update according PyConsole redesign in GUI module
This commit is contained in:
parent
44d1856aa4
commit
cc6a9a8b86
@ -25,7 +25,7 @@
|
|||||||
// Author : Sergey ANIKIN, Open CASCADE S.A.S. (sergey.anikin@opencascade.com)
|
// Author : Sergey ANIKIN, Open CASCADE S.A.S. (sergey.anikin@opencascade.com)
|
||||||
|
|
||||||
#ifndef DISABLE_PYCONSOLE
|
#ifndef DISABLE_PYCONSOLE
|
||||||
#include <SalomePyConsole_Console.h>
|
#include <PyConsole_Console.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "GEOMToolsGUI.h"
|
#include "GEOMToolsGUI.h"
|
||||||
@ -135,7 +135,7 @@ void GEOMToolsGUI::OnCheckGeometry()
|
|||||||
{
|
{
|
||||||
SalomeApp_Application* app =
|
SalomeApp_Application* app =
|
||||||
dynamic_cast< SalomeApp_Application* >(SUIT_Session::session()->activeApplication());
|
dynamic_cast< SalomeApp_Application* >(SUIT_Session::session()->activeApplication());
|
||||||
SalomePyConsole_Console* pyConsole = app->pythonConsole();
|
PyConsole_Console* pyConsole = app->pythonConsole();
|
||||||
|
|
||||||
if (pyConsole)
|
if (pyConsole)
|
||||||
pyConsole->exec("from GEOM_usinggeom import *");
|
pyConsole->exec("from GEOM_usinggeom import *");
|
||||||
|
Loading…
Reference in New Issue
Block a user