From: Yann G. <ygo...@is...> - 2012-06-12 10:54:44
|
Quoth Jerzy Karczmarczuk on Tue, Jun 12, 2012 at 11:53:17 +0200 > Of course this will not work on Windows (no os.fork, although some > people manufactured some unsafe hacks). That is true. > The problem can be probably solved using .subprocess in Python, but this > is not my domain. Perhaps somebody could add something? It should be trivial to do so. You just have a function that starts the VPython process instead of the child fork. Note that then you need to either set the VPython window title as a parameter or have an agreed title name (otherwise xwininfo will not work). That reminds me, I am not sure that xwininfo works on Windows either... So maybe not so trivial. A much nicer solution would involve threading. However, I could not make it work. The code core dumps when it attempt to embed VPython. If anyone wanted to help, I would not mind working it out but cannot afford to spend the time at work doing it. Sorry. -- GPG Fingerprint 8666 7F9A 17E7 AC8E CC36 1D1E C707 D658 6685 2528 The views expressed in this e-mail may or may not reflect those of the author and do not necessarily reflect those of Isotek Oil and Gas Ltd. |