Re: [Emc-users] connecting up glade files in axis

2021-06-08 Thread andrew beck
Just a followup on how to get glade files

Hey everyone.

Just a quick email here to show the solution to glade files in axis..

Quick Answer.  Is you need to rename glade files from.
 "yourfilename.glade". To. "yourfilename.ui"


Here is the full story

First I copied the axis-glade Sim file.

Then copied the glade ini file line (this is just after the display
section. At start of ini file)

 I pasted this into my ini file.


I also copied the "manual input.ui". glade file

Into my config location

Then I tested with the Sim glade file in my configuration and it worked.

So I changed the glade section ini file setting to my file name which was
"turret-test.ui."

And it just worked.

So big thing that I missed is axis needs the glade files to be named.
.uiEg.  "yourfilename.ui"


Gmoccapy works for with..glade files.




Regards

Andrew

On Sat, Jun 5, 2021, 1:36 PM andrew beck  wrote:

> hey everyone.  I am trying to connect up glade files to axis
>
> I have a working config with gmoccapy
>
> just changing to axis for now
>
> this is working in gmoccapy
>
> #EMBED_TAB_NAME = Turret_test_buttons
> #EMBED_TAB_LOCATION = ntb_preview
> #EMBED_TAB_COMMAND = gladevcp -x {XID} -H turret_test.hal
> turret_test2.glade
>
> and i have these files
>
> turret_test.glade
> turret_test.hal
>
> can anyone help with the syntax to get glade working with axis?  or give
> me a working config that is working.
>
> all the axis/glade examples I have seen use .ui files
>
> for example this is the standard spindle speed stuff that comes with
> pncconf
>
> # add GladeVCP panel as a tab next to Preview/DRO:
> EMBED_TAB_NAME=GladeVCP demo
> EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x
> {XID} -u ./gladevcp/hitcounter.py ./gladevcp/manual-example.ui
>
> none of the examples have .glade files like i use in gmoccapy
>
> regards
>
> Andrew
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-08 Thread andy pugh
On Tue, 8 Jun 2021 at 01:35, Gene Heskett  wrote:

> > On Mon, Jun 7, 2021 at 9:37 PM andy pugh  wrote:

> > > On Mon, 7 Jun 2021 at 05:35, andrew beck 

> > > Can you start LinuxCNC from the command line

> Posted earlier.

I wasn't asking you, and had tried to move your Camview problems to a
different thread.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread Gene Heskett
On Monday 07 June 2021 18:59:34 andrew beck wrote:

> andy!
>
> if I rename the files to.ui files glade vcp files work fine in axis
>
> thanks
>
> mate
>
> On Mon, Jun 7, 2021 at 9:37 PM andy pugh  wrote:
> > On Mon, 7 Jun 2021 at 05:35, andrew beck  
wrote:
> > > Axis just chokes on the glade file.
> >
> > Can you start LinuxCNC from the command line and paste the output
> > here?

Posted earlier.

> > Which LinuxCNC branch?

git branch is master-gtk3, but there isn't a master-gkk3 reference, so I 
have to first checkout master, do the pull, and then switch back to 
master-gtk3.

Thanks Andy.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread andrew beck
andy!

if I rename the files to.ui files glade vcp files work fine in axis

thanks

mate

On Mon, Jun 7, 2021 at 9:37 PM andy pugh  wrote:

> On Mon, 7 Jun 2021 at 05:35, andrew beck  wrote:
> >
> > Axis just chokes on the glade file.
>
> Can you start LinuxCNC from the command line and paste the output here?
>
> Which LinuxCNC branch?
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1912
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread Gene Heskett
On Monday 07 June 2021 05:33:27 andy pugh wrote:

> On Mon, 7 Jun 2021 at 08:43, Gene Heskett  wrote:
> > But I have no clue where gi.repository.Gtk is or where it fits into
> > this
>
> It's in one of the Python files, either in the GladeVCP base code or
> in a handler file.

Can you narrow it down to python-2 or python-3, 3.7 TBE for a buster 
based install on wintel hdwe?  Or does apt have a utility to find it?

Thanks Andy.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread andy pugh
On Mon, 7 Jun 2021 at 05:35, andrew beck  wrote:
>
> Axis just chokes on the glade file.

Can you start LinuxCNC from the command line and paste the output here?

Which LinuxCNC branch?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread andy pugh
On Mon, 7 Jun 2021 at 08:43, Gene Heskett  wrote:

> But I have no clue where gi.repository.Gtk is or where it fits into this

It's in one of the Python files, either in the GladeVCP base code or
in a handler file.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-07 Thread Gene Heskett
On Saturday 05 June 2021 05:22:37 andy pugh wrote:

> On Sat, 5 Jun 2021 at 02:39, andrew beck  wrote:
> > can anyone help with the syntax to get glade working with axis?  or
> > give me a working config that is working.
>
> What isn't working?
>
> Does gladevcp choke on the .glade part, or when it opens the file?
>
> I have a vague recollection that .ui and .glade map to different GTK
> versions, but I could be wrong.
>
> You could just try renaming the .glade file.

Here is the single error line:

 GLADE VCP ERROR:With xml file: camview.glade : 'gi.repository.Gtk' 
object has no attribute 'glade'

camview.glade was posted a couple msgs back. As can be seen here, I
tried renaming the interface, but that made even more errors. Here it
is again:




  
  
  
  
  
False

  
True
0
#
640
480
150
5
10
False

  

  




But I have no clue where gi.repository.Gtk is or where it fits into this 
from the .ini file in the display section:

EMBED_TAB_NAME = Camera
EMBED_TAB_COMMAND = gladevcp -x {XID} camview.glade

gene@sixty40:~$ cd linuxcnc/configs/6040-5i25-7i76-rs485/
gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ less 
6040-5i25-7i76-rs485.ini
gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ locate gi.repository.Gtk
gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ sudo updatedb
[sudo] password for gene:
gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ locate gi.repository.Gtk
gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ 

So gi.repository.Gtk does not exist on that system.  Why?

Thanks Andy.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-06 Thread andrew beck
Axis just chokes on the glade file.

On Mon, Jun 7, 2021, 4:06 PM andy pugh  wrote:

> On Sat, 5 Jun 2021 at 02:39, andrew beck  wrote:
>
> > can anyone help with the syntax to get glade working with axis?  or give
> me
> > a working config that is working.
>
> What isn't working?
>
> Does gladevcp choke on the .glade part, or when it opens the file?
>
> I have a vague recollection that .ui and .glade map to different GTK
> versions, but I could be wrong.
>
> You could just try renaming the .glade file.
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1912
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-06 Thread andrew beck
Lol I'll try that

On Mon, Jun 7, 2021, 4:06 PM andy pugh  wrote:

> On Sat, 5 Jun 2021 at 02:39, andrew beck  wrote:
>
> > can anyone help with the syntax to get glade working with axis?  or give
> me
> > a working config that is working.
>
> What isn't working?
>
> Does gladevcp choke on the .glade part, or when it opens the file?
>
> I have a vague recollection that .ui and .glade map to different GTK
> versions, but I could be wrong.
>
> You could just try renaming the .glade file.
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1912
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] connecting up glade files in axis

2021-06-06 Thread andy pugh
On Sat, 5 Jun 2021 at 02:39, andrew beck  wrote:

> can anyone help with the syntax to get glade working with axis?  or give me
> a working config that is working.

What isn't working?

Does gladevcp choke on the .glade part, or when it opens the file?

I have a vague recollection that .ui and .glade map to different GTK
versions, but I could be wrong.

You could just try renaming the .glade file.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] connecting up glade files in axis

2021-06-04 Thread andrew beck
hey everyone.  I am trying to connect up glade files to axis

I have a working config with gmoccapy

just changing to axis for now

this is working in gmoccapy

#EMBED_TAB_NAME = Turret_test_buttons
#EMBED_TAB_LOCATION = ntb_preview
#EMBED_TAB_COMMAND = gladevcp -x {XID} -H turret_test.hal turret_test2.glade

and i have these files

turret_test.glade
turret_test.hal

can anyone help with the syntax to get glade working with axis?  or give me
a working config that is working.

all the axis/glade examples I have seen use .ui files

for example this is the standard spindle speed stuff that comes with pncconf

# add GladeVCP panel as a tab next to Preview/DRO:
EMBED_TAB_NAME=GladeVCP demo
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID}
-u ./gladevcp/hitcounter.py ./gladevcp/manual-example.ui

none of the examples have .glade files like i use in gmoccapy

regards

Andrew

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users