+ changes to make working with ipython shell
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5162 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -240,6 +240,7 @@ QWidget* setupMainWindow()
|
||||
}
|
||||
|
||||
if (!Gui::MainWindow::getInstance()) {
|
||||
PyObject* input = PySys_GetObject("stdin");
|
||||
Gui::MainWindow *mw = new Gui::MainWindow();
|
||||
QIcon icon = qApp->windowIcon();
|
||||
if (icon.isNull())
|
||||
@@ -288,6 +289,7 @@ QWidget* setupMainWindow()
|
||||
|
||||
Gui::Application::Instance->activateWorkbench(start.c_str());
|
||||
mw->loadWindowSettings();
|
||||
PySys_SetObject("stdin", input);
|
||||
}
|
||||
else {
|
||||
Gui::getMainWindow()->show();
|
||||
|
||||
Reference in New Issue
Block a user