Re: gtk embedding.

Yann Golanski <ygolanski-hnK7fAIlAj/[email protected]> Tue, 12 Jun 2012 11:54:31 +0100
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
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.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Visualpython-users mailing list
Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/visualpython-users
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJP1x/nAAoJEMcH1lhmhSUoSwcIAJvhwqypZt2dNBS73hnS+Gfv
iMPpcqJ8gVqkHntLlfGbP3vnSgMruVm8E8XcSYmz5sJDSbE8f/lPM8BD0LANfKZa
lEzvhwPTt8w4BIHjPQmTLFPeytVYV5yp3AyWOLSrFeDfQB4KfdbbalnFSiAdlc1M
HSQeKAij4jdOZdZW/h5T4IEgRdnRcHpWxQCAsWin10TE/eI2GWTSsBeZ5iFQ5gbt
b5azXLBh3lNhab6n9+6nyv6MBcYJcph/KRH2mGmT+DVT21768dBk52f/9hgSVgCp
0EDuG9tzOsrY1sxe8ka905PVkNF7Ard+tuIgj6mkf5UHt+nL65D0XVre7iA/Y60=
=6wx6
-----END PGP SIGNATURE-----