From e347ffb2f18d8defea3133287fa23b781845e37b Mon Sep 17 00:00:00 2001 From: hduelme Date: Tue, 30 Jun 2020 14:04:21 +0200 Subject: [PATCH] Added description to tool tip The description is now shown when hovering over a field. --- gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index 0fbb90e..788bc34 100644 --- a/gui.py +++ b/gui.py @@ -272,13 +272,14 @@ def checkCurrentPage(self): col_temp = col-skipped item = self.tableWidget.item(row, col_temp) testing = temp_Sections[col].isvalueAllowed(item.text()) + descriptipn = temp_Sections[col].description if(testing!="Ok"): - print("Soll nicht so "+temp_Sections[col].name) + #print("Soll nicht so "+temp_Sections[col].name) self.tableWidget.item(row, col_temp).setBackground(QColor(255, 0, 0)) - self.tableWidget.item(row, col_temp).setToolTip(testing) + self.tableWidget.item(row, col_temp).setToolTip("Description: "+descriptipn+"\n"+testing) else: self.tableWidget.item(row, col_temp).setBackground(QColor(255, 255, 255)) - self.tableWidget.item(row, col_temp).setToolTip("") + self.tableWidget.item(row, col_temp).setToolTip("Description: "+descriptipn) no_error.append(col_temp) x+=1 if(len(no_error)