PyQt5 QCommandLinkButton - Getting down property Last Updated : 30 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will see how we can get down property of the QCommandLinkButton. Down property holds whether the command link button is pressed down. If this property is true, the button is pressed down. The signals pressed and clicked are not emitted if we set this property to true. By default this property is false. We can set this property with the help of setDown method. In order to do this we use isDown method with the command link button object Syntax : button.isDown() Argument : It takes no argument Return : It return bool Below is the implementation Python3 1== # importing libraries from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtCore import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # setting title self.setWindowTitle("Python ") # setting geometry self.setGeometry(100, 100, 500, 400) # calling method self.UiComponents() # showing all the widgets self.show() # method for components def UiComponents(self): # creating a command link button cl_button = QCommandLinkButton("Press", self) # setting geometry cl_button.setGeometry(250, 100, 200, 50) # setting down property cl_button.setDown(True) # creating label label = QLabel("GeeksforGeeks", self) # setting label geometry label.setGeometry(50, 100, 200, 40) # getting down property value = cl_button.isDown() # setting text to the label label.setText("Down : " + str(value)) # create pyqt5 app App = QApplication(sys.argv) # create the instance of our Window window = Window() # start the app sys.exit(App.exec()) Output : Comment More infoAdvertise with us Next Article PyQt5 QCommandLinkButton - Getting Auto Exclusive Property R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Python PyQt-QCommandLinkButton Practice Tags : python Similar Reads PyQt5 QCommandLinkButton - Getting Flat property In this article we will see how we can get the flat property of the QCommandLinkButton. This property holds whether the command link button border is raised. This property's default is false. If this property is enabled, most styles will not paint the command link button background unless the button 2 min read PyQt5 QCommandLinkButton - Getting Auto Repeat Property In this article we will see how we can get the auto repeat property of the QCommandLinkButton. If auto repeat property is enabled, then 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. The initia 2 min read PyQt5 QCommandLinkButton - Getting Auto Default Property In this article we will see how we can get the auto default property of the QCommandLinkButton. If this property is set to true then the command link button is an auto default button. In some GUI styles a default button is drawn with an extra frame around it, up to 3 pixels or more. Qt automatically 2 min read PyQt5 QCommandLinkButton - Getting Auto Exclusive Property In this article we will see how we can get the auto exclusive property of the QCommandLinkButton. If auto-exclusivity is enabled, checkable command link buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. In an exclusive command link button g 2 min read PyQt5 QCommandLinkButton - Setting down property In this article we will see how we can set down property to the QCommandLinkButton. Down property holds whether the command link button is pressed down. If this property is true, the button is pressed down. The signals pressed and clicked are not emitted if we set this property to true. By default t 1 min read PyQt5 QCommandLinkButton - Getting Icon In this article we will see how we can get the icon of the QCommandLinkButton. By default an arrow is set as the icon of the command link button although we can change this any time with the help of setIcon method. In order to do this we use icon method with the command link button object Syntax : b 2 min read Like