diff options
author | Kali Kaneko <kali@leap.se> | 2017-10-26 00:50:22 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-11-01 01:40:28 +0100 |
commit | 55630c58c072d4f55852629d22cff80aa5835f72 (patch) | |
tree | 579c9cce9a30946bff7f4dfeb88cfddea6fbbc1d /src/leap/bitmask | |
parent | b0e1bd223368f09e49f13b9ecf04fb0570e04dc0 (diff) |
[feature] add tooltip
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/gui/app.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py index 8f76357..283e5a0 100644 --- a/src/leap/bitmask/gui/app.py +++ b/src/leap/bitmask/gui/app.py @@ -91,14 +91,19 @@ class WithTrayIcon(QDialog): def setVPNStatus(self, status): seticon = self.trayIcon.setIcon + settip = self.trayIcon.setToolTip if status == 'off': seticon(self.ICON_OFF) + settip('Off') elif status == 'on': seticon(self.ICON_ON) + settip('On') elif status == 'starting': seticon(self.ICON_WAIT) + settip('Starting') elif status == 'stopping': seticon(self.ICON_WAIT) + settip('Stopping') def setUpEventListener(self): leap_events.register(catalog.VPN_STATUS_CHANGED, self._handle_vpn_event) @@ -116,7 +121,7 @@ class WithTrayIcon(QDialog): self.ICON_OFF = QIcon(QPixmap(TRAY_ICONS[2])) def _createTrayIcon(self): - self.trayIcon = QSystemTrayIcon(self) + self.trayIcon = QSystemTrayIcon(self) class BrowserWindow(QWebView, WithTrayIcon): |