Fix pylint issues
This commit is contained in:
parent
686967c36d
commit
30fc79ed45
|
@ -130,7 +130,6 @@ class NavigateApp(App, TextInput):
|
||||||
|
|
||||||
def getCurrentAccount(self):
|
def getCurrentAccount(self):
|
||||||
"""It uses to get current account label."""
|
"""It uses to get current account label."""
|
||||||
global belonging
|
|
||||||
return BMConfigParser().get(belonging, 'label') + '({})'.format(belonging)
|
return BMConfigParser().get(belonging, 'label') + '({})'.format(belonging)
|
||||||
|
|
||||||
|
|
||||||
|
@ -160,9 +159,8 @@ class Inbox(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
global belonging
|
|
||||||
self.orientation = "vertical"
|
|
||||||
self.inboxaccounts()
|
self.inboxaccounts()
|
||||||
|
print(dt)
|
||||||
|
|
||||||
def inboxaccounts(self):
|
def inboxaccounts(self):
|
||||||
account = belonging
|
account = belonging
|
||||||
|
@ -211,13 +209,11 @@ class Sent(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
global belonging
|
|
||||||
self.orientation = "vertical"
|
|
||||||
self.sentaccounts()
|
self.sentaccounts()
|
||||||
|
print(dt)
|
||||||
|
|
||||||
def sentaccounts(self):
|
def sentaccounts(self):
|
||||||
account = belonging
|
account = belonging
|
||||||
folder = 'inbox'
|
|
||||||
self.loadSent(account, 'All', '')
|
self.loadSent(account, 'All', '')
|
||||||
|
|
||||||
def loadSent(self, account, where="", what=""):
|
def loadSent(self, account, where="", what=""):
|
||||||
|
@ -261,9 +257,8 @@ class Trash(Screen):
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
Clock.schedule_once(self.init_ui, 0)
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
def init_ui(self, dt=0):
|
||||||
global belonging
|
|
||||||
self.orientation = "vertical"
|
|
||||||
self.inboxaccounts()
|
self.inboxaccounts()
|
||||||
|
print(dt)
|
||||||
|
|
||||||
def inboxaccounts(self):
|
def inboxaccounts(self):
|
||||||
account = belonging
|
account = belonging
|
||||||
|
@ -271,6 +266,7 @@ class Trash(Screen):
|
||||||
self.loadTrashlist(account, folder, 'All', '')
|
self.loadTrashlist(account, folder, 'All', '')
|
||||||
|
|
||||||
def loadTrashlist(self, account, folder, where="", what="", unreadOnly=False):
|
def loadTrashlist(self, account, folder, where="", what="", unreadOnly=False):
|
||||||
|
"""Load Trash list for trashed messages."""
|
||||||
xAddress = "toaddress"
|
xAddress = "toaddress"
|
||||||
queryreturn = kivy_helper_search.search_sql(
|
queryreturn = kivy_helper_search.search_sql(
|
||||||
xAddress, account, folder, where, what, unreadOnly)
|
xAddress, account, folder, where, what, unreadOnly)
|
||||||
|
@ -292,10 +288,14 @@ class Trash(Screen):
|
||||||
|
|
||||||
|
|
||||||
class Dialog(Screen):
|
class Dialog(Screen):
|
||||||
|
"""Dialog Screen uses screen to show widgets of screens."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Test(Screen):
|
class Test(Screen):
|
||||||
|
"""Test Screen uses screen to show widgets of screens."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -304,10 +304,6 @@ class Create(Screen):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Create, self).__init__(*args, **kwargs)
|
super(Create, self).__init__(*args, **kwargs)
|
||||||
Clock.schedule_once(self.init_ui, 0)
|
|
||||||
|
|
||||||
def init_ui(self, dt=0):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
"""Send message from one address to another."""
|
"""Send message from one address to another."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user