Flexible GUI

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
06 Jan 2025 11:54 #318209 by blazini36
Replied by blazini36 on topic Flexible GUI
Oh and is there any way to use a progress bar for something like spindle speed feedback? I don't see progressbar in the docs

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
06 Jan 2025 12:16 #318211 by JT
Replied by JT on topic Flexible GUI

Is there any mechanism to use a qstackedwidget and some pushbuttons instead of the tab widget? I suppose you generally need to stuff some python in there to use the former.
 

So yes you can use a QStackedWidget now.



JT

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
06 Jan 2025 12:52 #318212 by JT
Replied by JT on topic Flexible GUI

Can stuff like "view_dro_cb" be a pushbutton that is set to checkable rather than a checkbox?

 

You can now and no need to set it checkable in the designer the code does that for you.



JT

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
06 Jan 2025 12:53 #318213 by JT
Replied by JT on topic Flexible GUI

Oh and is there any way to use a progress bar for something like spindle speed feedback? I don't see progressbar in the docs
 

I'll have to add a HAL QProgressBar... then you can connect it in your postgui.hal file.

JT

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
06 Jan 2025 14:00 #318223 by JT
Replied by JT on topic Flexible GUI

Oh and is there any way to use a progress bar for something like spindle speed feedback? I don't see progressbar in the docs
 

I've added a QProgressBar to monitor the HAL pin you give it.

gnipsel.com/linuxcnc/flexgui/hal.html#progress-bar

No time left this morning for a video...

JT

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
06 Jan 2025 20:30 #318259 by blazini36
Replied by blazini36 on topic Flexible GUI
Wow that was quick. I'll check that out soon

Thanks
The following user(s) said Thank You: JT

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
07 Jan 2025 00:50 #318275 by blazini36
Replied by blazini36 on topic Flexible GUI
I installed the new deb from releases but it doesn't seem to be adding anything new. I don't have qabstractproperties on the pushbutton whether I set it inside the stacked widget or not. Do I have to do anything special when upgrading flexgui?

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2025 11:20 #318288 by JT
Replied by JT on topic Flexible GUI

I installed the new deb from releases but it doesn't seem to be adding anything new. I don't have qabstractproperties on the pushbutton whether I set it inside the stacked widget or not. Do I have to do anything special when upgrading flexgui?
 

I'm not sure what qabstractproperties is, what are you trying to do with that?

If you download the deb from the latest release and install it with gdebi or your favorite way you have the latest.

I'll add a screenshot to the docs.

JT

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2025 11:44 #318293 by JT
Replied by JT on topic Flexible GUI
The first video really didn't show the steps to create a stacked widget page change buttons very well.



And I added a screen shot to the docs
gnipsel.com/linuxcnc/flexgui/controls.html#stacked-widget

JT

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
07 Jan 2025 13:09 #318298 by JT
Replied by JT on topic Flexible GUI
As an added bonus I just added Next Previous buttons for a stacked widget so you only need two buttons for unlimited number of pages.



JT

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

Time to create page: 0.081 seconds
Powered by Kunena Forum