Re: gtk embedding.
Yann Golanski <ygolanski-hnK7fAIlAj/[email protected]> Fri, 29 Jun 2012 16:43:50 +0100
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
A bug has risen from the embedding code I send earlier. The code works
fine under the fvwm2 window manager but not under Gnome. It appears
that Gnome is more picky with GTK. This result in any embedding command
destroying the VPythong window instead of embedding it.
Basically, to embed a GTK window into another one, you need to have a
pair of Gtk::Plug and Gtk::Socket. The child process (VPython in this
case) creates a plug and exposes the plug ID. The programme that
will embed VPython uses this plug ID as a parameter to its Gtk::Socket
and thus can embed the plug.
So, would it be possible to have a gtk::Plug() object within main_gui()
and a method that would return the Plug ID? Ideally, this would be
wrapped within a Python call so that I could do something akin to:
display.get_selected()
plug_id = display.get_gtk_plug_id()
Would it be okay if this became a feature request?
--
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) iQEcBAEBAgAGBQJP7c02AAoJEMcH1lhmhSUoGpAIAJKU2xMvbG7Rt2KQ2xCBkbmK EOJ4rdxb8E4f7Nd2QABULkamZ2kP6kdF7vMjSlmd/NP5oOMSZL/pLN/LsextOzdq LALXY56hY0+7YUYMYHHJYWi/oufvWWBldoMbktWJn785nJoGCPA3vOfBs77OCerJ NzQ1tpklM4Fj2hIdiV9SbXEU0vv22t9DzOH/95I3vZkrvefxZJt4TmE9jfNga94j fdSWn4CxLKR5MAUxE+skRaUDoPgi6PKEhiy2fcjX4IKPvsOp3INvwO0gRXX/78F5 QK9BnjICsjPqKu03KC0c02kzVgr5KQX5ail51X+ejlIJw0UdVZf/u6ielcP56ZE= =Fg0a -----END PGP SIGNATURE-----