On Saturday 05 June 2021 05:22:37 andy pugh wrote:
> On Sat, 5 Jun 2021 at 02:39, andrew beck <[email protected]> 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:
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!--glade-interface> -->
<requires lib="gtk+" version="2.24"/>
<!--requires lib="gtk+" version="3.0"/ -->
<!-- interface-requires gladevcp 0.0 -->
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="CamView" id="camview1">
<property name="visible">True</property>
<property name="camera">0</property>
<property name="draw_color">#FFFF00000000</property>
<property name="frame_width">640</property>
<property name="frame_height">480</property>
<property name="circle_size">150</property>
<property name="number_of_circles">5</property>
<property name="radius_difference">10</property>
<property name="autosize">False</property>
<property name="cam_settings"></property>
</object>
</child>
</object>
<!--/glade-interface> -->
</interface>
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 <http://geneslinuxbox.net:6309/gene>
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users