1
1
# 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
3
3
4
4
"""
5
5
All Common widgets of kivy are managed here.
8
8
import os
9
9
from datetime import datetime
10
10
11
+ from kivy .app import App
11
12
from kivy .core .window import Window
12
13
from kivy .metrics import dp
14
+ from kivy .properties import ListProperty , NumericProperty , StringProperty
13
15
from 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
26
16
from kivymd .toast import kivytoast
17
+ from kivymd .uix .button import MDFlatButton
27
18
from kivymd .uix .card import MDCardSwipe
28
19
from kivymd .uix .chip import MDChip
29
20
from 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
31
23
32
24
from pybitmessage .bitmessagekivy .get_platform import platform
33
25
from pybitmessage .bmconfigparser import config
46
38
}
47
39
48
40
49
- class ChipProperties ():
41
+ class ChipProperties (object ):
50
42
"""ChipProperties class for kivy UI"""
51
43
CENTER_X_ANDROID = 0.91
52
44
CENTER_X_OTHER = 0.94
@@ -58,7 +50,7 @@ class ChipProperties():
58
50
SIZE_HINT_OTHER = (0.08 , None )
59
51
60
52
61
- class BadgeProperties ():
53
+ class BadgeProperties (object ):
62
54
"""BadgeProperties class for kivy UI"""
63
55
SIZE_ANDROID = [120 , 140 ]
64
56
SIZE_OTHER = [64 , 80 ]
0 commit comments