summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/mainwindow.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-17 11:45:03 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-17 12:12:26 -0300
commitfa81e2f08335334f8def3a9275c00ba133e5f714 (patch)
tree56b8a7c131f0c9e4be5b58518e140c4d7a659245 /src/leap/bitmask/gui/mainwindow.py
parent5218fda6b524cb8e694113e123e7b0d05b205ddc (diff)
Improve parameters docstrings.
Also rename a parameter named 'param' to a more meaningful 'idx'.
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 708ecf7f..b911e5d8 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -652,9 +652,12 @@ class MainWindow(QtGui.QMainWindow):
def _react_to_new_updates(self, req):
"""
TRIGGERS:
- self._new_updates_available
+ self.new_updates
Displays the new updates label and sets the updates_content
+
+ :param req: Request type
+ :type req: leap.common.events.events_pb2.SignalRequest
"""
self.moveToThread(QtCore.QCoreApplication.instance().thread())
self.ui.lblNewUpdates.setVisible(True)
@@ -841,6 +844,9 @@ class MainWindow(QtGui.QMainWindow):
TRIGGERS:
self._systray.activated
+ :param reason: the reason why the tray got activated.
+ :type reason: int
+
Displays the context menu from the tray icon
"""
self._update_hideshow_menu()