gEDA-dev: Project Manager
Anthony J Bybell
netracurse at nc.rr.com
Sat Mar 29 18:59:29 EDT 2008
On Sat, 29 Mar 2008, Stuart Brorson wrote:
> Hi Newell --
>
> > One of the ways that I wanted the Project Manager to unfold was to have the
> > gEDA tools (gschem, etc) embedded/nested within the main window. I have
> > been searching on how to do this using PyGTK/GTK and it looks like the only
> > way that we are going to be able to run external xwindow apps within
> > PyGTK/GTK is to use Plugs and Sockets. However, in order for this to work
> > the external GUI apps have to be GTK apps. I haven not scanned all the
> > source but it seems some of the apps use GTK (version?) so this may work.
> > For the ones that are not implemented with GTK, AFAIK we would need to write
> > GTK wrappers and since I have never done this I do not know how much work is
> > involved. Any thoughts and/or suggestions?
>
> All graphical apps in gEDA use GTK. I don't know how you intend to
> handle non-graphical apps (gnucap), but I suppose one could write a
> think wrapper.
It doesn't matter what toolkit is used as long as a current (within the
past couple of years) X server is running underneath:
http://library.gnome.org/devel/gtk/2.12/GtkSocket.html
| The communication between a GtkSocket and a GtkPlug follows the XEmbed
| protocol. This protocol has also been implemented in other toolkits, e.g.
| Qt, allowing the same level of integration when embedding a Qt widget in
| GTK or vice versa.
...I haven't tried it, but it wouldn't shock me if the window_id is the
exact same value as that coming straight from X.
-Tony
More information about the geda-dev
mailing list