fixed code quality
This commit is contained in:
parent
1b81d07b05
commit
56a22d3526
|
@ -60,9 +60,9 @@ class AddressBook(Screen):
|
||||||
if self.ids.scroll_y.scroll_y <= -0.0 and self.has_refreshed:
|
if self.ids.scroll_y.scroll_y <= -0.0 and self.has_refreshed:
|
||||||
self.ids.scroll_y.scroll_y = 0.06
|
self.ids.scroll_y.scroll_y = 0.06
|
||||||
exist_addresses = len(self.ids.ml.children)
|
exist_addresses = len(self.ids.ml.children)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def refreshs(*args):
|
def refreshes(*args):
|
||||||
"""Refresh the Widget"""
|
"""Refresh the Widget"""
|
||||||
# state.navinstance.ids.sc11.ids.ml.clear_widgets()
|
# state.navinstance.ids.sc11.ids.ml.clear_widgets()
|
||||||
# state.navinstance.ids.sc11.loadAddresslist(None, 'All', '')
|
# state.navinstance.ids.sc11.loadAddresslist(None, 'All', '')
|
||||||
|
|
|
@ -15,7 +15,6 @@ from pybitmessage.baseclass.common import (
|
||||||
showLimitedCnt, toast, ThemeClsColor,
|
showLimitedCnt, toast, ThemeClsColor,
|
||||||
SwipeToDeleteItem, ShowTimeHistoy
|
SwipeToDeleteItem, ShowTimeHistoy
|
||||||
)
|
)
|
||||||
# from pybitmessage.baseclass.maildetail import MailDetail
|
|
||||||
|
|
||||||
|
|
||||||
class Draft(Screen):
|
class Draft(Screen):
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Inbox(Screen):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def set_defaultAddress():
|
def set_defaultAddress():
|
||||||
"""This method set's default address"""
|
"""This method set's default address"""
|
||||||
if state.association == "":
|
if state.association == "":
|
||||||
if state.kivyapp.variable_1:
|
if state.kivyapp.variable_1:
|
||||||
state.association = state.kivyapp.variable_1[0]
|
state.association = state.kivyapp.variable_1[0]
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
from pybitmessage import queues
|
from pybitmessage import queues
|
||||||
|
|
||||||
from pybitmessage.bmconfigparser import BMConfigParser
|
from pybitmessage.bmconfigparser import BMConfigParser
|
||||||
|
from pybitmessage import state
|
||||||
|
from pybitmessage.baseclass.common import toast
|
||||||
|
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
from kivy.properties import StringProperty, BooleanProperty
|
from kivy.properties import StringProperty, BooleanProperty
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
from kivymd.uix.behaviors.elevation import RectangularElevationBehavior
|
from kivymd.uix.behaviors.elevation import RectangularElevationBehavior
|
||||||
from kivy.uix.screenmanager import Screen
|
from kivy.uix.screenmanager import Screen
|
||||||
|
|
||||||
from pybitmessage import state
|
|
||||||
|
|
||||||
from pybitmessage.baseclass.common import toast
|
|
||||||
|
|
||||||
|
|
||||||
class Login(Screen):
|
class Login(Screen):
|
||||||
"""Login Screeen class for kivy Ui"""
|
"""Login Screeen class for kivy Ui"""
|
||||||
|
|
|
@ -2,7 +2,6 @@ from pybitmessage.get_platform import platform
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from pybitmessage.bmconfigparser import BMConfigParser
|
from pybitmessage.bmconfigparser import BMConfigParser
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
# from kivy.metrics import dp
|
|
||||||
from kivy.properties import (
|
from kivy.properties import (
|
||||||
ListProperty,
|
ListProperty,
|
||||||
StringProperty
|
StringProperty
|
||||||
|
|
|
@ -11,12 +11,6 @@ from kivymd.uix.list import (
|
||||||
OneLineAvatarIconListItem
|
OneLineAvatarIconListItem
|
||||||
)
|
)
|
||||||
|
|
||||||
# from bmconfigparser import BMConfigParser
|
|
||||||
from pybitmessage.baseclass.common import toast
|
|
||||||
|
|
||||||
# import queues
|
|
||||||
from pybitmessage import state
|
|
||||||
|
|
||||||
|
|
||||||
class Payment(Screen):
|
class Payment(Screen):
|
||||||
"""Payment Screen class for kivy Ui"""
|
"""Payment Screen class for kivy Ui"""
|
||||||
|
|
|
@ -7,7 +7,6 @@ from kivy.uix.boxlayout import BoxLayout
|
||||||
from kivy.uix.popup import Popup
|
from kivy.uix.popup import Popup
|
||||||
|
|
||||||
from pybitmessage import state
|
from pybitmessage import state
|
||||||
from pybitmessage.addresses import decodeAddress
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from pybitmessage.baseclass.common import toast
|
from pybitmessage.baseclass.common import toast
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
from kivy.factory import Factory
|
|
||||||
from kivy.properties import StringProperty, ListProperty
|
from kivy.properties import StringProperty, ListProperty
|
||||||
|
|
||||||
from kivy.uix.screenmanager import Screen
|
from kivy.uix.screenmanager import Screen
|
||||||
|
|
|
@ -1,22 +1,14 @@
|
||||||
from pybitmessage.get_platform import platform
|
|
||||||
from functools import partial
|
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
from kivy.properties import (
|
from kivy.properties import (
|
||||||
ListProperty,
|
ListProperty,
|
||||||
StringProperty
|
StringProperty
|
||||||
)
|
)
|
||||||
from kivymd.uix.button import MDFlatButton
|
|
||||||
from kivymd.uix.dialog import MDDialog
|
|
||||||
from kivymd.uix.label import MDLabel
|
from kivymd.uix.label import MDLabel
|
||||||
from kivy.uix.screenmanager import Screen
|
from kivy.uix.screenmanager import Screen
|
||||||
|
|
||||||
from pybitmessage import state
|
from pybitmessage import state
|
||||||
|
|
||||||
from pybitmessage.baseclass.common import (
|
from pybitmessage.baseclass.common import showLimitedCnt
|
||||||
toast, showLimitedCnt, ThemeClsColor,
|
|
||||||
CutsomSwipeToDeleteItem, ShowTimeHistoy,
|
|
||||||
avatarImageFirstLetter
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class Trash(Screen):
|
class Trash(Screen):
|
||||||
|
|
Reference in New Issue
Block a user