Fixed code quality

This commit is contained in:
shekhar-cis 2022-08-22 13:36:40 +05:30
parent afb53f4d71
commit e04fc16235
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -11,25 +11,15 @@ import importlib
import logging import logging
from kivy.lang import Builder from kivy.lang import Builder
from kivy.lang import Observable
from kivy.clock import Clock
from kivy.properties import ( from kivy.properties import (
BooleanProperty,
NumericProperty,
StringProperty,
ListProperty ListProperty
) )
from kivy.metrics import dp
from kivy.uix.boxlayout import BoxLayout from kivy.uix.boxlayout import BoxLayout
from kivy.uix.spinner import Spinner
from kivy.core.window import Window
from kivymd.app import MDApp from kivymd.app import MDApp
from kivymd.uix.label import MDLabel from kivymd.uix.label import MDLabel
from kivymd.uix.list import ( from kivymd.uix.list import (
OneLineAvatarIconListItem, IRightBodyTouch
IRightBodyTouch,
) )
from kivymd.uix.bottomsheet import MDCustomBottomSheet from kivymd.uix.bottomsheet import MDCustomBottomSheet
@ -71,6 +61,7 @@ def get_identity_list():
) )
return identity_list return identity_list
class Lang(BaseLanguage): class Lang(BaseLanguage):
"""UI Language""" """UI Language"""
@ -102,8 +93,8 @@ class BadgeText(IRightBodyTouch, MDLabel):
"""BadgeText class for kivy Ui""" """BadgeText class for kivy Ui"""
class CustomSpinner(BaseCustomSpinner): class IdentitySpinner(BaseCustomSpinner):
"""CustomSpinner class for kivy Ui""" """Identity Dropdown in Side Navigation bar"""
class NavigateApp(MDApp): class NavigateApp(MDApp):
@ -119,7 +110,7 @@ class NavigateApp(MDApp):
image_path = KivyStateVariables().image_dir image_path = KivyStateVariables().image_dir
tr = Lang("en") # for changing in franch replace en with fr tr = Lang("en") # for changing in franch replace en with fr
def build(self): # pylint:disable=no-self-use def build(self):
"""Method builds the widget""" """Method builds the widget"""
for kv in self.data_screens: for kv in self.data_screens:
Builder.load_file( Builder.load_file(