mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-08 01:15:00 -04:00
pep8: fix empty line counts
top level: 2, else 1 I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
This commit is contained in:
parent
5deb3f9e0f
commit
179eefae29
16 changed files with 74 additions and 15 deletions
|
@ -35,6 +35,7 @@ from server_status import ServerStatus
|
|||
from downloads import Downloads
|
||||
from options import Options
|
||||
|
||||
|
||||
class Application(QtGui.QApplication):
|
||||
def __init__(self):
|
||||
platform = helpers.get_platform()
|
||||
|
@ -42,6 +43,7 @@ class Application(QtGui.QApplication):
|
|||
self.setAttribute(QtCore.Qt.AA_X11InitThreads, True)
|
||||
QtGui.QApplication.__init__(self, sys.argv)
|
||||
|
||||
|
||||
class OnionShareGui(QtGui.QWidget):
|
||||
start_server_finished = QtCore.pyqtSignal()
|
||||
stop_server_finished = QtCore.pyqtSignal()
|
||||
|
@ -206,6 +208,7 @@ class OnionShareGui(QtGui.QWidget):
|
|||
def clear_message(self):
|
||||
self.status_bar.clearMessage()
|
||||
|
||||
|
||||
def alert(msg, icon=QtGui.QMessageBox.NoIcon):
|
||||
dialog = QtGui.QMessageBox()
|
||||
dialog.setWindowTitle("OnionShare")
|
||||
|
@ -214,6 +217,7 @@ def alert(msg, icon=QtGui.QMessageBox.NoIcon):
|
|||
dialog.setIcon(icon)
|
||||
dialog.exec_()
|
||||
|
||||
|
||||
def main():
|
||||
strings.load_strings()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue