Code style fixes, mostly whitespace
This commit is contained in:
parent
8d501ed1e4
commit
23a71d847b
12 changed files with 84 additions and 73 deletions
|
|
@ -26,18 +26,20 @@ from weboob.capabilities.job import ICapJob
|
|||
|
||||
from .ui.main_window_ui import Ui_MainWindow
|
||||
|
||||
|
||||
class JobListWidgetItem(QListWidgetItem):
|
||||
def __init__(self, job, *args, **kwargs):
|
||||
QListWidgetItem.__init__(self, *args, **kwargs)
|
||||
self.job = job
|
||||
|
||||
def __lt__(self, other):
|
||||
return self.job.publication_date < other.job.publication_date
|
||||
return self.job.publication_date < other.job.publication_date
|
||||
|
||||
def setAttrs(self, storage):
|
||||
text = u'%s - %s' % (self.job.backend, self.job.title)
|
||||
text = u'%s - %s' % (self.job.backend, self.job.title)
|
||||
self.setText(text)
|
||||
|
||||
|
||||
class MainWindow(QtMainWindow):
|
||||
def __init__(self, config, storage, weboob, parent=None):
|
||||
QtMainWindow.__init__(self, parent)
|
||||
|
|
@ -129,4 +131,3 @@ class MainWindow(QtMainWindow):
|
|||
self.ui.jobFrame.show()
|
||||
else:
|
||||
self.ui.jobFrame.hide()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue