Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Michael Haberler
Am 23.11.2010 um 18:55 schrieb Pavel Shramov: > On Tue, Nov 23, 2010 at 05:37:42PM +0100, Michael Haberler wrote: >> here's a patch for reading a hal cmd file with -h , stolen >> straight from axis >> seems to work for me > Looks fine for me except os.spawnvp. Python docs recommend using > sub

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Pavel Shramov
On Tue, Nov 23, 2010 at 05:37:42PM +0100, Michael Haberler wrote: > here's a patch for reading a hal cmd file with -h , stolen > straight from axis > seems to work for me Looks fine for me except os.spawnvp. Python docs recommend using subprocess.call [1]. Which will look like 'res = subprocess.

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Michael Haberler
Am 23.11.2010 um 16:28 schrieb Pavel Shramov: > There is no race. POSTGUI_HALFILE is executed strictly _before_ loading > custom tab. Ah, I see - in this case it's really a PREGUI_HALFILE ;-) I just assumed tab loading behaves like pyvcp > Now I realize that i don't see any way to reliably wai

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Pavel Shramov
On Tue, Nov 23, 2010 at 04:04:35PM +0100, Michael Haberler wrote: > [DISPLAY] > EMBED_TAB_NAME = gladevcp-test > EMBED_TAB_COMMAND = gladevcp -c gladevcp-test -w {XID} gladevcp-test.ui > [HAL] > POSTGUI_HALFILE = gladevcp-test.hal > > during startup I get > > gladevcp-test.hal:5: Pin 'gladevcp-

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Michael Haberler
Am 23.11.2010 um 14:14 schrieb Pavel Shramov: thanks, wiping the old hal.so in /usr/lib/python* made all the difference. One remaining problem and I guess we're off to the races. I have: [DISPLAY] EMBED_TAB_NAME = gladevcp-test EMBED_TAB_COMMAND = gladevcp -c gladevcp-test -w {XID} gladevcp-te

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Pavel Shramov
On Tue, Nov 23, 2010 at 12:40:40PM +0100, Michael Haberler wrote: > m...@cnc-ubuntu:~/workspace-machine/emc-fraese-hm2$ halcmd -f > gladevcp-test.hal > RTAPI: ERROR: could not open shared memory (errno=2) > Segmentation fault > > uh, better have RTAPI initalized, so start Axis and retry: It's ha

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-23 Thread Michael Haberler
Hi Pavel, following your patch I try: m...@cnc-ubuntu:~/workspace-machine/emc-fraese-hm2$ halcmd -f gladevcp-test.hal RTAPI: ERROR: could not open shared memory (errno=2) Segmentation fault uh, better have RTAPI initalized, so start Axis and retry: m...@cnc-ubuntu:~/workspace-machine/emc-fraes

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-11-22 Thread Pavel Shramov
Here is another patchset merged to master today. Some work was placed in HAL Led so now it behaves in Glade just like in gladevcp application. Another major improvement is that now gladevcp is fully compatible with GtkBuilder (i have two applications using gtkbuilder format). Also gladevcp test

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-10-24 Thread Pavel Shramov
On Sun, Oct 24, 2010 at 02:54:34AM +, Chris Morley wrote: > With your changes I may actually be able to figure out how to get GLADE to > dynamically > change the displayed widgets while editing. For whatever reason the glade > developers are > not talking about how to properly use the glade a

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-10-23 Thread Pavel Shramov
On Sun, Oct 24, 2010 at 02:54:34AM +, Chris Morley wrote: > Couple of small problems: > When I start Glade from a terminal The LED widget is not displayed with it's > proper png icon. > When I start GLADE from Applications menu none of hal widgets nor the hal > menu are displayed. > For whate

Re: [Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-10-23 Thread Chris Morley
> Theese changes are merged to master. It will be great if gladevcp users will > report bugs > and suggestions. > > Pavel > Hi Pavel Thanks again for your contributions. I just quickly checked out your changes. Couple of small problems: When I start Glade from a

[Emc-developers] GladeVCP improvements (and a bit of incompatible changes)

2010-10-23 Thread Pavel Shramov
With the help of Chris Radek we've managed to lower entry barrier for gladevcp users and added proper environment variables into scripts/emc-environmet for RIP mode and to src/Makefile for system wide install. So now if you want to try gladevcp just source emc-environment script and start to crea