Custom gui with glade

More
19 Jun 2018 12:00 #112577 by echesortux
Hello everybody, I am trying to design a custom interface using glade and following the guide wrote by John Thornton but I am having problems with Glade. I am using Glade 3.8.0 it is built-in in linuxcnc ISO (I am using lastest version of linuxcnc).

when I try to add a HAL_gremlin plus componenet to whatever object (top window, tab, etc) Glade crash I can see this error in the console

"(glade-3:4086): Gtk-WARNING **: Attempting to add a widget with type GtkHBox to a HAL_GremlinPlus, but as a GtkBin subclass a HAL_GremlinPlus can only contain one widget at a time; it already contains a widget of type GtkAlignment
**
Gtk:ERROR:/build/buildd-gtk+2.0_2.24.10-2-i386-Tg7Q_2/gtk+2.0-2.24.10/gtk/gtkwidget.c:5130:gtk_widget_reparent_fixup_child: assertion failed: (client_data != NULL)"


am I doing something wrong? is there other way to create an interface?

Thanks.

Please Log in or Create an account to join the conversation.

More
19 Jun 2018 15:42 #112581 by cmorley
Replied by cmorley on topic Custom gui with glade
Which iso are you using?
which version of linuxcnc?

Chris M

Please Log in or Create an account to join the conversation.

More
19 Jun 2018 15:49 #112582 by cmorley
Replied by cmorley on topic Custom gui with glade
I confirm this error on the debian stretch iso. (glade version 3.8.0)
i also use Mint which I installed glade version 3.8.6 and it does not crash.

I'd suggest not using gremlinplus widget unless you can update the GLADE version.
IIRC version Glade 3.8.0 was buggy.

Chris M
The following user(s) said Thank You: echesortux

Please Log in or Create an account to join the conversation.

More
19 Jun 2018 18:16 #112594 by echesortux
Replied by echesortux on topic Custom gui with glade
I am using linuxcnc 2.7.13
regading iso I downloaded from the link of the oficial linuxcnc web

www.linuxcnc.org/linuxcnc-2.7-wheezy.iso

Please Log in or Create an account to join the conversation.

More
19 Jun 2018 18:54 #112595 by echesortux
Replied by echesortux on topic Custom gui with glade
I just compliled glade 3.8.6 and it seems to be working ok at least it doesn't crash when I add a gremlinplus object. I will continue with John tutorial.
Thanks you cmorley.

Please Log in or Create an account to join the conversation.

More
20 Jun 2018 04:06 #112606 by cmorley
Replied by cmorley on topic Custom gui with glade
Glad you got it going.
I wanted to add - If you are building a screen for linuxcnc with gladevcp widgets, there is a program that was intended to help with that - Gscreen.
linuxcnc.org/docs/2.7/html/gui/gscreen.h..._sheet_custom_screen

Chris M

Please Log in or Create an account to join the conversation.

More
20 Jun 2018 20:55 #112659 by echesortux
Replied by echesortux on topic Custom gui with glade
thanks I will take a look at it. it seems very good.

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum