11# pylint: disable=no-name-in-module, attribute-defined-outside-init, import-error, unused-argument
2- # pylint: disable=no-init, too-few-public-methods
2+ # pylint: disable=no-init, too-few-public-methods, useless-object-inheritance
33
44"""
55 All Common widgets of kivy are managed here.
88import os
99from datetime import datetime
1010
11+ from kivy .app import App
1112from kivy .core .window import Window
1213from kivy .metrics import dp
14+ from kivy .properties import ListProperty , NumericProperty , StringProperty
1315from kivy .uix .image import Image
14- from kivy .properties import (
15- NumericProperty ,
16- StringProperty ,
17- ListProperty
18- )
19- from kivy .app import App
20-
21- from kivymd .uix .list import (
22- ILeftBody ,
23- IRightBodyTouch ,
24- )
25- from kivymd .uix .label import MDLabel
2616from kivymd .toast import kivytoast
17+ from kivymd .uix .button import MDFlatButton
2718from kivymd .uix .card import MDCardSwipe
2819from kivymd .uix .chip import MDChip
2920from kivymd .uix .dialog import MDDialog
30- from kivymd .uix .button import MDFlatButton
21+ from kivymd .uix .label import MDLabel
22+ from kivymd .uix .list import ILeftBody , IRightBodyTouch
3123
3224from pybitmessage .bitmessagekivy .get_platform import platform
3325from pybitmessage .bmconfigparser import config
4638}
4739
4840
49- class ChipProperties ():
41+ class ChipProperties (object ):
5042 """ChipProperties class for kivy UI"""
5143 CENTER_X_ANDROID = 0.91
5244 CENTER_X_OTHER = 0.94
@@ -58,7 +50,7 @@ class ChipProperties():
5850 SIZE_HINT_OTHER = (0.08 , None )
5951
6052
61- class BadgeProperties ():
53+ class BadgeProperties (object ):
6254 """BadgeProperties class for kivy UI"""
6355 SIZE_ANDROID = [120 , 140 ]
6456 SIZE_OTHER = [64 , 80 ]
0 commit comments