mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-28 00:55:40 -04:00
Add docstrings to all classes and methods (fix #198)
This commit is contained in:
parent
a5aff46050
commit
dc58921187
9 changed files with 245 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue