From 20548c1e82c74486b872f3ce45e05d678b861e39 Mon Sep 17 00:00:00 2001 From: airclay Date: Fri, 3 Sep 2021 10:16:08 -0500 Subject: [PATCH] WIP --- systrayUpdater.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/systrayUpdater.py b/systrayUpdater.py index 7822222..178530f 100755 --- a/systrayUpdater.py +++ b/systrayUpdater.py @@ -79,8 +79,12 @@ tray.setContextMenu(menu) # Update the labels for available updates count for i in Nupd: - option1.triggered.connect(lambda menuItem=text: self.dostuff(menuItem)) - option1.setText(text) - tray.setToolTip(text) + option1.triggered.connect(lambda bVal, menuItem=avail: addLabel(bVal,menuItem)) + option1.setText(avail) + tray.setToolTip(avail) + +def addLabel(self, menuItem): + print(menuItem) + app.exec_()