Minor stylistic code edits.
This commit is contained in:
parent
6b9ecb5785
commit
b1a0024edf
|
@ -23,7 +23,6 @@ class MenuScreen(QWidget):
|
||||||
self.exit_button.clicked.connect(self.exit_app)
|
self.exit_button.clicked.connect(self.exit_app)
|
||||||
|
|
||||||
widget_layout = QVBoxLayout(self)
|
widget_layout = QVBoxLayout(self)
|
||||||
widget_layout.addWidget(self.systemLabel)
|
|
||||||
widget_layout.addStretch()
|
widget_layout.addStretch()
|
||||||
widget_layout.addWidget(self.exit_button)
|
widget_layout.addWidget(self.exit_button)
|
||||||
widget_layout.addStretch()
|
widget_layout.addStretch()
|
||||||
|
@ -32,7 +31,7 @@ class MenuScreen(QWidget):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_system_info():
|
def get_system_info():
|
||||||
"""Retrieve information about the system."""
|
"""Retrieve information about the system."""
|
||||||
message = 'I am running on {os}.\n My screen is {height}x{width}'
|
message = 'I am running on {os}.\nMy screen is {height}x{width}'
|
||||||
geometry = QDesktopWidget().availableGeometry()
|
geometry = QDesktopWidget().availableGeometry()
|
||||||
os_sys = ' '.join(os.uname())
|
os_sys = ' '.join(os.uname())
|
||||||
return message.format(os=os_sys, height=geometry.height(), width=geometry.width())
|
return message.format(os=os_sys, height=geometry.height(), width=geometry.width())
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# Requirements for developing the justCheckers app
|
# Requirements for developing the justCheckers app
|
||||||
Sphinx>=1.2.2
|
Sphinx>=1.2.2
|
||||||
nose>=1.3.0
|
nose>=1.3.0
|
||||||
|
flake8
|
||||||
|
|
Loading…
Reference in New Issue