This commit is contained in:
airclay 2021-09-03 10:16:08 -05:00
parent 6312768749
commit 20548c1e82
1 changed files with 7 additions and 3 deletions

View File

@ -79,8 +79,12 @@ tray.setContextMenu(menu)
# Update the labels for available updates count # Update the labels for available updates count
for i in Nupd: for i in Nupd:
option1.triggered.connect(lambda menuItem=text: self.dostuff(menuItem)) option1.triggered.connect(lambda bVal, menuItem=avail: addLabel(bVal,menuItem))
option1.setText(text) option1.setText(avail)
tray.setToolTip(text) tray.setToolTip(avail)
def addLabel(self, menuItem):
print(menuItem)
app.exec_() app.exec_()