Fixed some style errors.

This commit is contained in:
Joel Torstensson 2015-04-09 12:49:32 +02:00
parent cc2c7c09ea
commit 12c83b721f
2 changed files with 4 additions and 3 deletions

View File

@ -1010,6 +1010,7 @@ def data(readonly=False):
DATA = data(readonly=True) DATA = data(readonly=True)
KEY_FIRST_COMMENT = """ KEY_FIRST_COMMENT = """
# vim: ft=conf # vim: ft=conf
# #

View File

@ -144,6 +144,7 @@ class MainWindow(QWidget):
self._add_widgets() self._add_widgets()
def _add_widgets(self): def _add_widgets(self):
"""Add or readd all widgets to the VBox."""
self._vbox.removeWidget(self._tabbed_browser) self._vbox.removeWidget(self._tabbed_browser)
self._vbox.removeWidget(self._downloadview) self._vbox.removeWidget(self._downloadview)
self._vbox.removeWidget(self.status) self._vbox.removeWidget(self.status)
@ -158,7 +159,6 @@ class MainWindow(QWidget):
raise ValueError("Invalid position {}!".format(position)) raise ValueError("Invalid position {}!".format(position))
self._vbox.addWidget(self.status) self._vbox.addWidget(self.status)
def _load_state_geometry(self): def _load_state_geometry(self):
"""Load the geometry from the state file.""" """Load the geometry from the state file."""
state_config = objreg.get('state-config') state_config = objreg.get('state-config')