Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -30,6 +30,7 @@ from weboob.capabilities.base import NotLoaded, NotAvailable
|
|||
from .ui.main_window_ui import Ui_MainWindow
|
||||
from .query import QueryDialog
|
||||
|
||||
|
||||
class HousingListWidgetItem(QListWidgetItem):
|
||||
def __init__(self, housing, *args, **kwargs):
|
||||
QListWidgetItem.__init__(self, *args, **kwargs)
|
||||
|
|
@ -56,6 +57,7 @@ class HousingListWidgetItem(QListWidgetItem):
|
|||
elif self.background().color() != QColor(0,0,0):
|
||||
self.setBackground(QBrush())
|
||||
|
||||
|
||||
class MainWindow(QtMainWindow):
|
||||
def __init__(self, config, storage, weboob, parent=None):
|
||||
QtMainWindow.__init__(self, parent)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ from weboob.tools.application.qt import QtDo, HTMLDelegate
|
|||
|
||||
from .ui.query_ui import Ui_QueryDialog
|
||||
|
||||
|
||||
class QueryDialog(QDialog):
|
||||
def __init__(self, weboob, parent=None):
|
||||
QDialog.__init__(self, parent)
|
||||
|
|
@ -43,7 +44,7 @@ class QueryDialog(QDialog):
|
|||
|
||||
if hasattr(self.ui.cityEdit, "setPlaceholderText"):
|
||||
self.ui.cityEdit.setPlaceholderText("Press enter to search city")
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
"""
|
||||
Disable handler <Enter> and <Escape> to prevent closing the window.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue