Add docstrings to all classes and methods (fix #198)

This commit is contained in:
Micah Lee 2015-11-15 19:01:20 -08:00
parent a5aff46050
commit dc58921187
9 changed files with 245 additions and 0 deletions

View file

@ -24,6 +24,9 @@ from onionshare import strings, helpers
class Options(QtGui.QHBoxLayout):
"""
The extra onionshare options in the GUI.
"""
def __init__(self, web):
super(Options, self).__init__()
@ -42,6 +45,9 @@ class Options(QtGui.QHBoxLayout):
self.addWidget(self.close_automatically)
def stay_open_changed(self, state):
"""
When the 'close automatically' checkbox is toggled, let the web app know.
"""
if state > 0:
self.web.set_stay_open(False)
else: