Skip to content

Commit

Permalink
Added description to tool tip
Browse files Browse the repository at this point in the history
The description is now shown when hovering over a field.
  • Loading branch information
hduelme committed Jun 30, 2020
1 parent 5db9ac3 commit e347ffb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)<count):
Expand Down

0 comments on commit e347ffb

Please sign in to comment.