VOOZH about

URL: https://www.geeksforgeeks.org/python/pyqt5-qcommandlinkbutton-setting-auto-repeat-interval-time/

⇱ PyQt5 QCommandLinkButton - Setting Auto Repeat Interval Time - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyQt5 QCommandLinkButton - Setting Auto Repeat Interval Time

Last Updated : 16 Sep, 2021

In this article, we will see how we can set the auto-repeat interval time of the QCommandLinkButton.It defines the length of the auto-repetition interval in milliseconds when auto repeat property is enabled. In auto-repeat property, the pressed, released and clicked signals are emitted at regular intervals when the command link button is down. Auto-repeat property is off by default although it can be enabled with the help of setAutoRepeat method.

In order to do this, we use setAutoRepeatDelay method with the command link button object 

Syntax : button.setAutoRepeatDelay(n)
Argument : It takes integer as argument
Return : It return None 
 

Below is the implementation  

Output : 


 

Comment