nofocus for help buttons
This commit is contained in:
@@ -80,6 +80,7 @@ class Timer(QtCore.QThread):
|
|||||||
class HelpButton(QPushButton):
|
class HelpButton(QPushButton):
|
||||||
def __init__(self, text):
|
def __init__(self, text):
|
||||||
QPushButton.__init__(self, '?')
|
QPushButton.__init__(self, '?')
|
||||||
|
self.setFocusPolicy(Qt.NoFocus)
|
||||||
self.setFixedWidth(20)
|
self.setFixedWidth(20)
|
||||||
self.clicked.connect(lambda: QMessageBox.information(self, 'Help', text, 'OK') )
|
self.clicked.connect(lambda: QMessageBox.information(self, 'Help', text, 'OK') )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user