|
From: theozh <th...@gm...> - 2018-07-31 18:02:35
|
With a Python PyQt5 GUI (Win7/64), I am generating gnuplot code which I send to gnuplot. The Python code is basically something like: ... process = QProcess() process.start(r"C:\Programs\gnuplot\bin\gnuplot.exe", ["-p"]) # e.g. if some button pushed... process.write(b"plot sin(x)\n") response = process.readAllStandardOutput() ... Which works ok. However, the gnuplot window always stays behind the PyQt5 window. How to bring the gnuplot window to the front? Something like "set term wxt raise" (of course ;-) doesn't help. Actually, it might be more a Python question rather than a gnuplot question. But maybe gnuplot users which are also programming in Python could give me some hints? |