+ 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:
wmayer
2011-11-23 21:04:51 +00:00
parent 8fa8b4b3df
commit bb726c4644
2 changed files with 8 additions and 0 deletions

View File

@@ -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();