Re: [Emc-developers] GladeVCP embedded in Axis

2010-10-09 Thread Pavel Shramov
Please update your .axisrc and gladevcp docwith following one. I've added killing of child processes at exit. Pavel #!/usr/bin/env python # vim: sts=4 sw=4 et import atexit _dynamic_childs = {} def _dynamic_tab(name, text): root_window.tk.eval('set _tabs_%(w)s

Re: [Emc-developers] GladeVCP embedded in Axis

2010-10-08 Thread Chris Morley
> Also I've some questions about glade modules. I've tried to place hal_*.py in > /usr/share/glade-3/modules but glade was not able to load them. It seem that > this dir > is not in python path. When running with PYTHONPATH=lib/python/gladevcp from > emc2 source > dir everything is working fin

Re: [Emc-developers] GladeVCP embedded in Axis

2010-10-08 Thread Pavel Shramov
On Fri, Oct 08, 2010 at 07:38:36PM +, Chris Morley wrote: > Nice work > I found that you don't need to change the window to a popup. I have not tested with 'top-level' window from galde. I've found that POPUP is needed for GtkWindow created in C so suspected that for glade it's needed too. Gla

Re: [Emc-developers] GladeVCP embedded in Axis

2010-10-08 Thread Chris Morley
> Short version. > All you need is: > 1. Small patch is needed for gladevcp (in following message). It uses python > Xlib [5]. > 2. Fix your glade file so it's toplevel window1 will be popup. With glade > gui change > 'Window type' property of top level window to 'popup'. Or edit .glade

[Emc-developers] GladeVCP embedded in Axis

2010-10-07 Thread Pavel Shramov
Chris asked [2] if it's possible to embed GladeVCP panels in Axis like video tabs [1] so moving discussion here. If you don't want to read detailed description of process and just curious how to run gladevcp in axis then skip to the last part of message. Background: Embeding programs into axis t