Need help in running a simple 3 button UI using Glade

More
02 Sep 2022 18:10 #251052 by cmorley
file still not applied.

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

More
03 Sep 2022 02:05 #251072 by vkhargwanshi
Thank you so much cmorley.

As you said i should first develop as side panel till I get a complete hold.

I checked again, i can see the file as part of my 1st question. Attached is screenshot of how i m able to see.. it's attached 2 times 
Attachments:

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

More
03 Sep 2022 02:26 #251073 by cmorley
Yes I see it now. Looks like the library for python3 sourceview is missing.
I couldn't find the package name to look for. i hope it's available for the PI.

Maybe someone else can advise you or search the forum for advice with getting gladevcp running on the pi.

could you run loadusr qtvcp sim_panel and see if that works?
If it does then we could use qtvcp instead.

Chris

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

More
03 Sep 2022 04:09 #251077 by vkhargwanshi
Thanks Chris, i will check and get back.

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

More
06 Sep 2022 13:32 #251292 by vkhargwanshi
I could get the gladevcp working by installing following
sudo apt-get install gir1.2-gtksource-3.0

Now exploring since sometime to achieve what I need by adding panel in axis and running command.. Looks like quite much study needed.. Will get back if need more help..
The following user(s) said Thank You: tommylight

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

More
10 Sep 2022 11:28 - 10 Sep 2022 12:29 #251610 by vkhargwanshi
I believe I can use GScreen for what I need. I am able to invoke the screen with 3 buttons only. Able to invoke Action related functions. But buttons are not getting enabled.In Axis, touchy, it was taking postgui file with top level container set as 1. However in Gscreen its not accepting any portgui file. I am wondering what am I missing. How should I enable the button.Attached are the files that I am using.
Attachments:
Last edit: 10 Sep 2022 12:29 by vkhargwanshi.

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

More
10 Sep 2022 13:12 #251611 by vkhargwanshi
Whole day I was trying to solve this issue... Just after making this post.. I thought to use GtkButton instead of HAL Button and it worked.

Now I am wondering whats the difference here.. When should I use HAL Button and when GTK button

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

More
10 Sep 2022 16:50 #251623 by cmorley
hal_button creates a HAL pin that reflects the state of the button, otherwise it's the same as GTK button.
linuxcnc.org/docs/devel/html/gui/gladevc...gladevcp:hal-buttons

The enable problem is because you used a HAL_table to place the buttons in. HAL_tab has a pin to control 'sensitivity' - set the pin true and the buttons are enabled.
linuxcnc.org/docs/stable/html/gui/gladev...l#gladevcp:hal-table

You don't have to use special linuxcnc/HAL widgets, if you don't need their special abilities.

Chris
The following user(s) said Thank You: vkhargwanshi

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

More
13 Sep 2022 11:07 #251798 by vkhargwanshi
Thank you very much Chris for explanation. Its clear to me now.

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

Moderators: HansU
Time to create page: 0.252 seconds
Powered by Kunena Forum