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
|
|
@ -37,6 +37,7 @@ from .ui.thread_message_ui import Ui_ThreadMessage
|
|||
from .ui.profile_ui import Ui_Profile
|
||||
from .ui.notes_ui import Ui_Notes
|
||||
|
||||
|
||||
class ThreadMessage(QFrame):
|
||||
"""
|
||||
This class represents a message in the thread tab.
|
||||
|
|
@ -70,6 +71,7 @@ class ThreadMessage(QFrame):
|
|||
return False
|
||||
return self.message == m.message
|
||||
|
||||
|
||||
class ContactThread(QWidget):
|
||||
"""
|
||||
The thread of the selected contact.
|
||||
|
|
@ -341,6 +343,7 @@ class ContactProfile(QWidget):
|
|||
text += '<br /><font color=#ff0000><i>(Hidden photo)</i></font>'
|
||||
self.ui.photoUrlLabel.setText(text)
|
||||
|
||||
|
||||
class ContactNotes(QWidget):
|
||||
""" Widget for storing notes about a contact """
|
||||
|
||||
|
|
@ -399,6 +402,7 @@ class ContactNotes(QWidget):
|
|||
QMessageBox.critical(self, self.tr('Error while saving notes'),
|
||||
content, QMessageBox.Ok)
|
||||
|
||||
|
||||
class IGroup(object):
|
||||
def __init__(self, weboob, id, name):
|
||||
self.id = id
|
||||
|
|
@ -408,6 +412,7 @@ class IGroup(object):
|
|||
def iter_contacts(self, cb):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class MetaGroup(IGroup):
|
||||
def iter_contacts(self, cb):
|
||||
if self.id == 'online':
|
||||
|
|
@ -427,6 +432,7 @@ class MetaGroup(IGroup):
|
|||
self.process = None
|
||||
cb(None)
|
||||
|
||||
|
||||
class ContactsWidget(QWidget):
|
||||
def __init__(self, weboob, parent=None):
|
||||
QWidget.__init__(self, parent)
|
||||
|
|
@ -587,5 +593,3 @@ class ContactsWidget(QWidget):
|
|||
content += u'\n%s\n' % to_unicode(backtrace)
|
||||
QMessageBox.critical(self, self.tr('Error while getting contact'),
|
||||
content, QMessageBox.Ok)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ from weboob.tools.application.qt import QtDo, HTMLDelegate
|
|||
|
||||
from .ui.events_ui import Ui_Events
|
||||
|
||||
|
||||
class EventsWidget(QWidget):
|
||||
def __init__(self, weboob, parent=None):
|
||||
QWidget.__init__(self, parent)
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ from .status import AccountsStatus
|
|||
from .contacts import ContactsWidget
|
||||
from .events import EventsWidget
|
||||
|
||||
|
||||
class MainWindow(QtMainWindow):
|
||||
def __init__(self, config, weboob, parent=None):
|
||||
QtMainWindow.__init__(self, parent)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ from weboob.tools.application.qt import QtApplication
|
|||
|
||||
from .main_window import MainWindow
|
||||
|
||||
|
||||
class QHaveDate(QtApplication):
|
||||
APPNAME = 'qhavedate'
|
||||
VERSION = '0.f'
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ from weboob.capabilities.account import ICapAccount, StatusField
|
|||
from weboob.tools.application.qt import QtDo
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
|
||||
class Account(QFrame):
|
||||
def __init__(self, weboob, backend, parent=None):
|
||||
QFrame.__init__(self, parent)
|
||||
|
|
@ -103,6 +104,7 @@ class Account(QFrame):
|
|||
self.body.setText(u'<b>Unable to connect:</b> %s' % to_unicode(err))
|
||||
self.title.setText(u'<font color=#ff0000>%s</font>' % unicode(self.title.text()))
|
||||
|
||||
|
||||
class AccountsStatus(QScrollArea):
|
||||
def __init__(self, weboob, parent=None):
|
||||
QScrollArea.__init__(self, parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue