Pychecker Fixes
This commit is contained in:
parent
543d2d5cfb
commit
fb44c8aaf7
|
@ -104,12 +104,11 @@ class Inbox(Screen):
|
||||||
secondary_text=item['secondary_text'],
|
secondary_text=item['secondary_text'],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
text_color=NavigateApp().theme_cls.primary_color)
|
||||||
|
img_latter = item['secondary_text'][0].upper() if (
|
||||||
|
item['secondary_text'][0].upper() >= 'A' and item[
|
||||||
|
'secondary_text'][0].upper() <= 'Z') else '!'
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source='./images/text_images/{}.png'.format(
|
source='./images/text_images/{}.png'.format(img_latter)))
|
||||||
item['secondary_text'][0].upper() if (
|
|
||||||
item['secondary_text'][0].upper() >= 'A' and item[
|
|
||||||
'secondary_text'][0].upper() <= 'Z')
|
|
||||||
else '!')))
|
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.inbox_detail, item['receivedTime']))
|
self.inbox_detail, item['receivedTime']))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
|
@ -233,12 +232,11 @@ class MyAddress(Screen):
|
||||||
secondary_text=item['secondary_text'],
|
secondary_text=item['secondary_text'],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
text_color=NavigateApp().theme_cls.primary_color)
|
||||||
|
img_latter = item['text'][0].upper() if (
|
||||||
|
item['text'][0].upper() >= 'A' and item['text'][
|
||||||
|
0].upper() <= 'Z') else '!'
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source='./images/text_images/{}.png'.format(
|
source='./images/text_images/{}.png'.format(img_latter)))
|
||||||
item['text'][0].upper() if (
|
|
||||||
item['text'][0].upper() >= 'A' and item['text'][
|
|
||||||
0].upper() <= 'Z')
|
|
||||||
else '!')))
|
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.myadd_detail, item['secondary_text'], item['text']))
|
self.myadd_detail, item['secondary_text'], item['text']))
|
||||||
self.ids.ml.add_widget(meny)
|
self.ids.ml.add_widget(meny)
|
||||||
|
@ -290,12 +288,12 @@ class AddressBook(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):
|
||||||
"""Clock Schdule for method AddressBook"""
|
"""Clock Schdule for method AddressBook."""
|
||||||
self.loadAddresslist(None, 'All', '')
|
self.loadAddresslist(None, 'All', '')
|
||||||
print(dt)
|
print(dt)
|
||||||
|
|
||||||
def loadAddresslist(self, account, where="", what=""):
|
def loadAddresslist(self, account, where="", what=""):
|
||||||
"""Clock Schdule for method AddressBook"""
|
"""Clock Schdule for method AddressBook."""
|
||||||
if state.searcing_text:
|
if state.searcing_text:
|
||||||
where = ['label', 'address']
|
where = ['label', 'address']
|
||||||
what = state.searcing_text
|
what = state.searcing_text
|
||||||
|
@ -309,11 +307,11 @@ class AddressBook(Screen):
|
||||||
secondary_text=item[1],
|
secondary_text=item[1],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
text_color=NavigateApp().theme_cls.primary_color)
|
||||||
|
img_latter = item[0][0].upper() if (
|
||||||
|
item[0][0].upper() >= 'A' and item[0][
|
||||||
|
0].upper() <= 'Z') else '!'
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source='./images/text_images/{}.png'.format(
|
source='./images/text_images/{}.png'.format(img_latter)))
|
||||||
item[0][0].upper() if (
|
|
||||||
item[0][0].upper() >= 'A' and item[0][
|
|
||||||
0].upper() <= 'Z') else '!')))
|
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.addBook_detail, item[1], item[0]))
|
self.addBook_detail, item[1], item[0]))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
|
@ -609,7 +607,6 @@ class Random(Screen):
|
||||||
|
|
||||||
def generateaddress(self):
|
def generateaddress(self):
|
||||||
"""Method for Address Generator."""
|
"""Method for Address Generator."""
|
||||||
import queues
|
|
||||||
streamNumberForAddress = 1
|
streamNumberForAddress = 1
|
||||||
label = self.ids.label.text
|
label = self.ids.label.text
|
||||||
eighteenByteRipe = False
|
eighteenByteRipe = False
|
||||||
|
@ -690,12 +687,11 @@ class Sent(Screen):
|
||||||
secondary_text=item['secondary_text'],
|
secondary_text=item['secondary_text'],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
text_color=NavigateApp().theme_cls.primary_color)
|
||||||
|
img_latter = item['secondary_text'][0].upper() if (
|
||||||
|
item['secondary_text'][0].upper() >= 'A' and item[
|
||||||
|
'secondary_text'][0].upper() <= 'Z') else '!'
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source='./images/text_images/{}.png'.format(
|
source='./images/text_images/{}.png'.format(img_latter)))
|
||||||
item['secondary_text'][0].upper() if (
|
|
||||||
item['secondary_text'][0].upper() >= 'A' and item[
|
|
||||||
'secondary_text'][0].upper() <= 'Z')
|
|
||||||
else '!')))
|
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.sent_detail, item['lastactiontime']))
|
self.sent_detail, item['lastactiontime']))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
|
@ -814,10 +810,11 @@ class Trash(Screen):
|
||||||
secondary_text=item[2],
|
secondary_text=item[2],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
text_color=NavigateApp().theme_cls.primary_color)
|
||||||
|
img_latter = item[2][0].upper() if (
|
||||||
|
item[2][0].upper() >= 'A' and item[
|
||||||
|
2][0].upper() <= 'Z') else '!'
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source='./images/text_images/{}.png'.format(
|
source='./images/text_images/{}.png'.format(img_latter)))
|
||||||
item[2][0].upper() if (item[2][0].upper() >= 'A' and item[
|
|
||||||
2][0].upper() <= 'Z') else '!')))
|
|
||||||
self.ids.ml.add_widget(meny)
|
self.ids.ml.add_widget(meny)
|
||||||
|
|
||||||
|
|
||||||
|
@ -894,17 +891,6 @@ class NavigateApp(App):
|
||||||
kivyuisignaler.release()
|
kivyuisignaler.release()
|
||||||
super(NavigateApp, self).run()
|
super(NavigateApp, self).run()
|
||||||
|
|
||||||
def show_address_success(self):
|
|
||||||
"""Showing the succesfull address."""
|
|
||||||
content = MDLabel(font_style='Body1',
|
|
||||||
theme_text_color='Secondary',
|
|
||||||
text="Successfully Saved your contact address. "
|
|
||||||
"That's pretty awesome right!",
|
|
||||||
size_hint_y=None,
|
|
||||||
valign='top')
|
|
||||||
content.bind(texture_size=content.setter('size'))
|
|
||||||
self.dialog.open()
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def showmeaddresses(name="text"):
|
def showmeaddresses(name="text"):
|
||||||
"""Show the addresses in spinner to make as dropdown."""
|
"""Show the addresses in spinner to make as dropdown."""
|
||||||
|
@ -961,14 +947,6 @@ class NavigateApp(App):
|
||||||
msg_counter_objs.trash_cnt.badge_text = state.trash_count
|
msg_counter_objs.trash_cnt.badge_text = state.trash_count
|
||||||
msg_counter_objs.draft_cnt.badge_text = state.draft_count
|
msg_counter_objs.draft_cnt.badge_text = state.draft_count
|
||||||
|
|
||||||
def getInboxMessageDetail(self, instance):
|
|
||||||
"""Getting message detail after selected message description."""
|
|
||||||
try:
|
|
||||||
self.root.ids._mngr.current = 'page'
|
|
||||||
except AttributeError:
|
|
||||||
self.parent.manager.current = 'page'
|
|
||||||
print('Message Clicked {}'.format(instance))
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getCurrentAccount():
|
def getCurrentAccount():
|
||||||
"""It uses to get current account label."""
|
"""It uses to get current account label."""
|
||||||
|
@ -1550,10 +1528,10 @@ class CustomSpinner(Spinner):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""Method used for setting size of spinner."""
|
"""Method used for setting size of spinner."""
|
||||||
super(CustomSpinner, self).__init__(*args, **kwargs)
|
super(CustomSpinner, self).__init__(*args, **kwargs)
|
||||||
max = 2.8
|
max_value = 2.8
|
||||||
self.dropdown_cls.max_height = self.height * max + max * 4
|
self.dropdown_cls.max_height = self.height * max_value + max_value * 4
|
||||||
|
|
||||||
|
|
||||||
def remove_search_bar(self):
|
def remove_search_bar(obj):
|
||||||
"""Remove search bar."""
|
"""Remove search bar."""
|
||||||
self.parent.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
obj.parent.parent.parent.parent.parent.ids.search_bar.clear_widgets()
|
||||||
|
|
Reference in New Issue
Block a user