1
0

replace help buttons in send tab with clickable labels

This commit is contained in:
ThomasV
2015-04-22 09:49:01 +02:00
parent a32503d8fb
commit 2f0f1aafa6
2 changed files with 41 additions and 31 deletions

View File

@@ -110,6 +110,16 @@ class ThreadedButton(QPushButton):
t.start()
class HelpLabel(QLabel):
def __init__(self, text, help_text):
QLabel.__init__(self, text)
self.help_text = help_text
def mouseReleaseEvent(self, x):
QMessageBox.information(self, 'Help', self.help_text, 'OK')
class HelpButton(QPushButton):
def __init__(self, text):
QPushButton.__init__(self, '?')