We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab2ba8 commit 80f30b3Copy full SHA for 80f30b3
1 file changed
NavisPythonShell/IronPythonConsoleCommand.cs
@@ -5,6 +5,7 @@
5
using System.Diagnostics;
6
using Microsoft.Scripting;
7
using System.Threading;
8
+using System.Windows.Interop;
9
using System.Windows.Threading;
10
using NavisPythonShell.NpsRuntime;
11
using Forms = System.Windows.Forms;
@@ -97,6 +98,9 @@ public override int Execute(params string[] parameters)
97
98
}
99
});
100
101
+ WindowInteropHelper helper = new WindowInteropHelper(gui);
102
+ IntPtr hander = Application.Gui.MainWindow.Handle;
103
+ helper.Owner = hander;
104
gui.ShowDialog();
105
return 0;
106
0 commit comments