Flex Gui I/O Widgets

More
02 Sep 2025 08:26 #334255 by MaHa
Flex Gui I/O Widgets was created by MaHa
My machine has mpg wheels to control feed and spindle, halui.feed-override.counts and halui.spindle.0.override.counts
Is there a way, to make the sliders follow the adjustement with mpg wheel?

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

More
02 Sep 2025 14:27 #334271 by JT
Replied by JT on topic Flex Gui I/O Widgets

My machine has mpg wheels to control feed and spindle, halui.feed-override.counts and halui.spindle.0.override.counts
Is there a way, to make the sliders follow the adjustement with mpg wheel?
 

How do you have both the slider and the mpg connected to halui?

JT

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

More
02 Sep 2025 18:58 #334290 by JT
Replied by JT on topic Flex Gui I/O Widgets

My machine has mpg wheels to control feed and spindle, halui.feed-override.counts and halui.spindle.0.override.counts
Is there a way, to make the sliders follow the adjustement with mpg wheel?
 

You can use a HAL_IO slider and the slider position is updated when the count changes. Note a QSlider is an integer only widget.
You will need a fresh copy of Flex GUI as I just fixed that a HAL_IO QSlider didn't get updated when the value changed.
gnipsel.com/linuxcnc/flexgui/hal.html#hal-i-o

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

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

More
03 Sep 2025 20:11 #334370 by MaHa
Replied by MaHa on topic Flex Gui I/O Widgets
Today, after updates, i am not able to start any flexgui ui .  Error: No module named 'psutil'

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

More
04 Sep 2025 15:38 - 04 Sep 2025 15:38 #334407 by JT
Replied by JT on topic Flex Gui I/O Widgets

Today, after updates, i am not able to start any flexgui ui .  Error: No module named 'psutil'

 
The module psutil was removed 5 days ago.

Can you post the complete error?

How did you update?

JT
Last edit: 04 Sep 2025 15:38 by JT.

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

More
04 Sep 2025 19:00 #334428 by MaHa
Replied by MaHa on topic Flex Gui I/O Widgets
After another update one error solved, and next error occured. I modified ini settings, moved css entry  and dro_font_size to [flexgui], but my ui and the examples are not starting:

Traceback (most recent call last):
  File "/usr/bin/flexgui", line 341, in <module>
    window = flexgui()
             ^^^^^^^^^
  File "/usr/bin/flexgui", line 245, in __init__
    startup.setup_plot(self)
  File "/usr/lib/python3/dist-packages/libflexgui/startup.py", line 2169, in setup_plot
    dro_font = self.inifile.find('FLEXGUI', 'DRO_FONT_SIZE') or '12'
               ^^^^
NameError: name 'self' is not defined
 
The following user(s) said Thank You: JT

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

More
04 Sep 2025 20:09 #334436 by JT
Replied by JT on topic Flex Gui I/O Widgets

After another update one error solved, and next error occured. I modified ini settings, moved css entry  and dro_font_size to [flexgui], but my ui and the examples are not starting:


Traceback (most recent call last):
  File "/usr/bin/flexgui", line 341, in <module>
    window = flexgui()
             ^^^^^^^^^
  File "/usr/bin/flexgui", line 245, in __init__
    startup.setup_plot(self)
  File "/usr/lib/python3/dist-packages/libflexgui/startup.py", line 2169, in setup_plot
    dro_font = self.inifile.find('FLEXGUI', 'DRO_FONT_SIZE') or '12'
               ^^^^
NameError: name 'self' is not defined

 
 

Sorry about the copy and paste error, I've fixed that. And thanks for posting the complete error it makes it easy to fix.

JT

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

Time to create page: 0.066 seconds
Powered by Kunena Forum