fixed code quality

This commit is contained in:
shekhar-cis 2022-01-05 20:48:43 +05:30
parent 1b81d07b05
commit 56a22d3526
9 changed files with 7 additions and 27 deletions

View File

@ -60,9 +60,9 @@ class AddressBook(Screen):
if self.ids.scroll_y.scroll_y <= -0.0 and self.has_refreshed:
self.ids.scroll_y.scroll_y = 0.06
exist_addresses = len(self.ids.ml.children)
@staticmethod
def refreshs(*args):
def refreshes(*args):
"""Refresh the Widget"""
# state.navinstance.ids.sc11.ids.ml.clear_widgets()
# state.navinstance.ids.sc11.loadAddresslist(None, 'All', '')

View File

@ -15,7 +15,6 @@ from pybitmessage.baseclass.common import (
showLimitedCnt, toast, ThemeClsColor,
SwipeToDeleteItem, ShowTimeHistoy
)
# from pybitmessage.baseclass.maildetail import MailDetail
class Draft(Screen):

View File

@ -25,7 +25,7 @@ class Inbox(Screen):
@staticmethod
def set_defaultAddress():
"""This method set's default address"""
"""This method set's default address"""
if state.association == "":
if state.kivyapp.variable_1:
state.association = state.kivyapp.variable_1[0]

View File

@ -1,16 +1,14 @@
from pybitmessage import queues
from pybitmessage.bmconfigparser import BMConfigParser
from pybitmessage import state
from pybitmessage.baseclass.common import toast
from kivy.clock import Clock
from kivy.properties import StringProperty, BooleanProperty
from kivy.uix.boxlayout import BoxLayout
from kivymd.uix.behaviors.elevation import RectangularElevationBehavior
from kivy.uix.screenmanager import Screen
from pybitmessage import state
from pybitmessage.baseclass.common import toast
class Login(Screen):
"""Login Screeen class for kivy Ui"""

View File

@ -2,7 +2,6 @@ from pybitmessage.get_platform import platform
from functools import partial
from pybitmessage.bmconfigparser import BMConfigParser
from kivy.clock import Clock
# from kivy.metrics import dp
from kivy.properties import (
ListProperty,
StringProperty

View File

@ -11,12 +11,6 @@ from kivymd.uix.list import (
OneLineAvatarIconListItem
)
# from bmconfigparser import BMConfigParser
from pybitmessage.baseclass.common import toast
# import queues
from pybitmessage import state
class Payment(Screen):
"""Payment Screen class for kivy Ui"""

View File

@ -7,7 +7,6 @@ from kivy.uix.boxlayout import BoxLayout
from kivy.uix.popup import Popup
from pybitmessage import state
from pybitmessage.addresses import decodeAddress
from datetime import datetime
from pybitmessage.baseclass.common import toast

View File

@ -1,6 +1,5 @@
from functools import partial
from kivy.clock import Clock
from kivy.factory import Factory
from kivy.properties import StringProperty, ListProperty
from kivy.uix.screenmanager import Screen

View File

@ -1,22 +1,14 @@
from pybitmessage.get_platform import platform
from functools import partial
from kivy.clock import Clock
from kivy.properties import (
ListProperty,
StringProperty
)
from kivymd.uix.button import MDFlatButton
from kivymd.uix.dialog import MDDialog
from kivymd.uix.label import MDLabel
from kivy.uix.screenmanager import Screen
from pybitmessage import state
from pybitmessage.baseclass.common import (
toast, showLimitedCnt, ThemeClsColor,
CutsomSwipeToDeleteItem, ShowTimeHistoy,
avatarImageFirstLetter
)
from pybitmessage.baseclass.common import showLimitedCnt
class Trash(Screen):