Flex GUI - MDI Button

More
27 Oct 2025 13:02 #337278 by MaHa
Flex GUI - MDI Button was created by MaHa
When the mdi-button is doubleclicked accidentally or just clicked multiple times in a short period, 
the mdi command is executed , mostly uwanted, multiple times. Is it possible to lock the button for
0.5 second or an adjustable value? 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
27 Oct 2025 14:19 #337279 by tommylight
Replied by tommylight on topic Flex GUI - MDI Button
Should be easier to set the "double click" speed for the mouse in the mouse settings, from Linux settings.
This is from Mint, but should be similar on XFCE.

Attachments:

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

More
28 Oct 2025 08:04 #337334 by MaHa
Replied by MaHa on topic Flex GUI - MDI Button
Thanks for reply. I was testing with a value of 200 instead 400 default.  Then i recognized the mdi commands are qeued, so there is no escape from executing every button press. Now i try something with a normal pushbutton and use the pythonmodul. creating a timestamp on each button press and get the difference, only execute the command if result is >=7. I am still testing
The following user(s) said Thank You: JT

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

More
28 Oct 2025 12:10 #337343 by JT
Replied by JT on topic Flex GUI - MDI Button
I just updated the code so if a MDI command is running the MDI button will not execute again.

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

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

Time to create page: 0.126 seconds
Powered by Kunena Forum