fixed CQ for bitmessagekivy.mpybit module part10

This commit is contained in:
surbhicis 2020-07-16 17:53:35 +05:30
parent 697109c3f8
commit 4fcf24be4a
Signed by untrusted user: surbhicis
GPG Key ID: 48A8C2D218DE7B0B

View File

@ -2,7 +2,8 @@
# pylint: disable=too-many-lines,import-error,no-name-in-module,unused-argument # pylint: disable=too-many-lines,import-error,no-name-in-module,unused-argument
# pylint: disable=too-many-ancestors,too-many-locals,useless-super-delegation # pylint: disable=too-many-ancestors,too-many-locals,useless-super-delegation
# pylint: disable=protected-access # pylint: disable=protected-access
# pylint: disable=import-outside-toplevel,ungrouped-imports,wrong-import-order,unused-import,arguments-differ
# pylint: disable=invalid-name,unnecessary-comprehension,broad-except,simplifiable-if-expression,no-member
# pylint: disable=too-many-return-statements # pylint: disable=too-many-return-statements
""" """
@ -98,6 +99,7 @@ elif platform == "android":
@run_on_ui_thread @run_on_ui_thread
def show_toast(text, length): def show_toast(text, length):
"""Its showing toast on screen"""
t = Toast.makeText(context, text, length) t = Toast.makeText(context, text, length)
t.show() t.show()
@ -133,7 +135,7 @@ def toast(text):
from kivymd.toast.kivytoast import toast from kivymd.toast.kivytoast import toast
toast(text) toast(text)
return return None
def showLimitedCnt(total_msg): def showLimitedCnt(total_msg):
@ -184,7 +186,7 @@ def chipTag(text):
class Inbox(Screen): class Inbox(Screen):
"""Inbox Screen uses screen to show widgets of screens""" """Inbox Screen class for kivy Ui"""
queryreturn = ListProperty() queryreturn = ListProperty()
has_refreshed = True has_refreshed = True
@ -318,8 +320,6 @@ class Inbox(Screen):
self.ids.scroll_y.scroll_y = 0.06 self.ids.scroll_y.scroll_y = 0.06
total_message = len(self.ids.ml.children) total_message = len(self.ids.ml.children)
self.update_inbox_screen_on_scroll(total_message) self.update_inbox_screen_on_scroll(total_message)
else:
pass
def update_inbox_screen_on_scroll(self, total_message, where="", what=""): def update_inbox_screen_on_scroll(self, total_message, where="", what=""):
"""This method is used to load more data on scroll down""" """This method is used to load more data on scroll down"""
@ -414,13 +414,11 @@ class Inbox(Screen):
class CustomTwoLineAvatarIconListItem(TwoLineAvatarIconListItem): class CustomTwoLineAvatarIconListItem(TwoLineAvatarIconListItem):
"""Custom Two Line Avatar Icon List""" """CustomTwoLineAvatarIconListItem class for kivy Ui"""
pass
class MyAddress(Screen): class MyAddress(Screen):
"""MyAddress screen uses screen to show widgets of screens""" """MyAddress screen class for kivy Ui"""
address_label = StringProperty() address_label = StringProperty()
text_address = StringProperty() text_address = StringProperty()
@ -515,8 +513,6 @@ class MyAddress(Screen):
self.has_refreshed = ( self.has_refreshed = (
True if my_addresses != len(self.addresses_list) else False True if my_addresses != len(self.addresses_list) else False
) )
else:
pass
def update_addressBook_on_scroll(self, my_addresses): def update_addressBook_on_scroll(self, my_addresses):
"""Loads more data on scroll down""" """Loads more data on scroll down"""
@ -630,7 +626,7 @@ class MyAddress(Screen):
class AddressBook(Screen): class AddressBook(Screen):
"""AddressBook Screen uses screen to show widgets of screens""" """AddressBook Screen class for kivy Ui"""
queryreturn = ListProperty() queryreturn = ListProperty()
has_refreshed = True has_refreshed = True
@ -710,8 +706,6 @@ class AddressBook(Screen):
self.has_refreshed = ( self.has_refreshed = (
True if exist_addresses != len(self.queryreturn) else False True if exist_addresses != len(self.queryreturn) else False
) )
else:
pass
def update_addressBook_on_scroll(self, exist_addresses): def update_addressBook_on_scroll(self, exist_addresses):
"""Load more data on scroll down""" """Load more data on scroll down"""
@ -722,7 +716,6 @@ class AddressBook(Screen):
"""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', '')
pass
# @staticmethod # @staticmethod
def addBook_detail(self, address, label, *args): def addBook_detail(self, address, label, *args):
@ -807,8 +800,6 @@ class SelectableRecycleBoxLayout(
# pylint: disable = duplicate-bases # pylint: disable = duplicate-bases
pass
class SelectableLabel(RecycleDataViewBehavior, Label): class SelectableLabel(RecycleDataViewBehavior, Label):
"""Add selection support to the Label""" """Add selection support to the Label"""
@ -840,7 +831,7 @@ class SelectableLabel(RecycleDataViewBehavior, Label):
class RV(RecycleView): class RV(RecycleView):
"""Recycling View""" """Recycling View class for kivy Ui"""
def __init__(self, **kwargs): def __init__(self, **kwargs):
"""Recycling Method""" """Recycling Method"""
@ -848,7 +839,7 @@ class RV(RecycleView):
class DropDownWidget(BoxLayout): class DropDownWidget(BoxLayout):
"""Adding Dropdown Widget""" """DropDownWidget class for kivy Ui"""
# pylint: disable=too-many-statements # pylint: disable=too-many-statements
@ -992,10 +983,10 @@ class DropDownWidget(BoxLayout):
def qrScanner(self): def qrScanner(self):
"""This method is used for scanning Qr code""" """This method is used for scanning Qr code"""
pass
class ScanScreen(Screen): class ScanScreen(Screen):
"""DropDownWidget class for kivy Ui"""
def on_pre_enter(self): def on_pre_enter(self):
""" """
on_pre_enter works little better on android on_pre_enter works little better on android
@ -1025,10 +1016,8 @@ class ScanScreen(Screen):
Clock.schedule_once(self.stop_camera, 0) Clock.schedule_once(self.stop_camera, 0)
def start_camera(self, *args): def start_camera(self, *args):
"""Its used for starting camera for scanning qrcode"""
self.xcam = self.children[0].ids.zbarcam.ids.xcamera self.xcam = self.children[0].ids.zbarcam.ids.xcamera
# pass
# self.xxx= self.children[0].ids.zbarcam.ids.xcamera
# print(self.cam._device.isOpened())
if platform == "android": if platform == "android":
self.xcam.play = True self.xcam.play = True
@ -1036,21 +1025,20 @@ class ScanScreen(Screen):
Clock.schedule_once(self.open_cam, 0) Clock.schedule_once(self.open_cam, 0)
def stop_camera(self, *args): def stop_camera(self, *args):
# print(self.children[0].ids.zbarcam.ids.xcamera.play) """Its used for stop the camera"""
self.xcam.play = False self.xcam.play = False
# self.xcam._camera.stop()
# self.children[0].ids.zbarcam.stop()
if platform != "android": if platform != "android":
self.xcam._camera._device.release() self.xcam._camera._device.release()
def open_cam(self, *args): def open_cam(self, *args):
"""It will open up the camera"""
if not self.xcam._camera._device.isOpened(): if not self.xcam._camera._device.isOpened():
self.xcam._camera._device.open(self.xcam._camera._index) self.xcam._camera._device.open(self.xcam._camera._index)
self.xcam.play = True self.xcam.play = True
class MyTextInput(TextInput): class MyTextInput(TextInput):
"""Takes the text input in the field""" """MyTextInput class for kivy Ui"""
txt_input = ObjectProperty() txt_input = ObjectProperty()
flt_list = ObjectProperty() flt_list = ObjectProperty()
@ -1088,7 +1076,7 @@ class MyTextInput(TextInput):
class Payment(Screen): class Payment(Screen):
"""Payment module""" """Payment Screen class for kivy Ui"""
def get_free_credits(self, instance): def get_free_credits(self, instance):
"""Get the available credits""" """Get the available credits"""
@ -1105,6 +1093,7 @@ class Payment(Screen):
state.availabe_credit) state.availabe_credit)
def create_hidden_payment_address(self, instance): def create_hidden_payment_address(self, instance):
"""This is basically used for creating hidden address used in payment for purchasing credits"""
if BMConfigParser().paymentaddress(): if BMConfigParser().paymentaddress():
toast('hidden payment address already exist for buying subscription...') toast('hidden payment address already exist for buying subscription...')
else: else:
@ -1120,37 +1109,39 @@ class Payment(Screen):
class Category(BoxLayout, RectangularElevationBehavior): class Category(BoxLayout, RectangularElevationBehavior):
"""Category class for kivy Ui"""
elevation_normal = .01 elevation_normal = .01
class ProductLayout(BoxLayout, RectangularElevationBehavior): class ProductLayout(BoxLayout, RectangularElevationBehavior):
"""ProductLayout class for kivy Ui"""
elevation_normal = .01 elevation_normal = .01
class PaymentMethodLayout(BoxLayout): class PaymentMethodLayout(BoxLayout):
pass """PaymentMethodLayout class for kivy Ui"""
class ListItemWithLabel(OneLineAvatarIconListItem): class ListItemWithLabel(OneLineAvatarIconListItem):
pass """ListItemWithLabel class for kivy Ui"""
class RightLabel(IRightBodyTouch, MDLabel): class RightLabel(IRightBodyTouch, MDLabel):
pass """RightLabel class for kivy Ui"""
class HomeScreen(Screen): class HomeScreen(Screen):
pass """HomeScreen class for kivy Ui"""
class Credits(Screen): class Credits(Screen):
"""Credits Method""" """Credits Screen class for kivy Ui"""
available_credits = StringProperty('{0}'.format('€ 0')) available_credits = StringProperty('{0}'.format('€ 0'))
class Login(Screen): class Login(Screen):
"""Login Screeen""" """Login Screeen class for kivy Ui"""
log_text1 = ( log_text1 = (
'You may generate addresses by using either random numbers' 'You may generate addresses by using either random numbers'
' or by using a passphrase If you use a passphrase, the address' ' or by using a passphrase If you use a passphrase, the address'
@ -1167,7 +1158,7 @@ class Login(Screen):
class NetworkStat(Screen): class NetworkStat(Screen):
"""Method used to show network stat""" """NetworkStat class for kivy Ui"""
text_variable_1 = StringProperty( text_variable_1 = StringProperty(
'{0}::{1}'.format('Total Connections', '0')) '{0}::{1}'.format('Total Connections', '0'))
@ -1202,7 +1193,7 @@ class NetworkStat(Screen):
class ContentNavigationDrawer(BoxLayout): class ContentNavigationDrawer(BoxLayout):
"""Navigate Content Drawer""" """ContentNavigationDrawer class for kivy Uir"""
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
"""Method used for contentNavigationDrawer""" """Method used for contentNavigationDrawer"""
@ -1220,7 +1211,7 @@ class ContentNavigationDrawer(BoxLayout):
class Random(Screen): class Random(Screen):
"""Generates Random Address""" """Random Screen class for Ui"""
is_active = BooleanProperty(False) is_active = BooleanProperty(False)
checked = StringProperty("") checked = StringProperty("")
@ -1291,7 +1282,7 @@ class Random(Screen):
class Sent(Screen): class Sent(Screen):
"""Sent Screen uses screen to show widgets of screens""" """Sent Screen class for kivy Ui"""
queryreturn = ListProperty() queryreturn = ListProperty()
has_refreshed = True has_refreshed = True
@ -1434,8 +1425,6 @@ class Sent(Screen):
self.ids.scroll_y.scroll_y = 0.06 self.ids.scroll_y.scroll_y = 0.06
total_sent_msg = len(self.ids.ml.children) total_sent_msg = len(self.ids.ml.children)
self.update_sent_screen_on_scroll(total_sent_msg) self.update_sent_screen_on_scroll(total_sent_msg)
else:
pass
def update_sent_screen_on_scroll(self, total_sent_msg, where="", what=""): def update_sent_screen_on_scroll(self, total_sent_msg, where="", what=""):
"""This method is used to load more data on scroll down""" """This method is used to load more data on scroll down"""
@ -1517,7 +1506,7 @@ class Sent(Screen):
class Trash(Screen): class Trash(Screen):
"""Trash Screen uses screen to show widgets of screens""" """Trash Screen class for kivy Ui"""
trash_messages = ListProperty() trash_messages = ListProperty()
has_refreshed = True has_refreshed = True
@ -1615,8 +1604,6 @@ class Trash(Screen):
self.ids.scroll_y.scroll_y = 0.06 self.ids.scroll_y.scroll_y = 0.06
total_trash_msg = len(self.ids.ml.children) total_trash_msg = len(self.ids.ml.children)
self.update_trash_screen_on_scroll(total_trash_msg) self.update_trash_screen_on_scroll(total_trash_msg)
else:
pass
def update_trash_screen_on_scroll(self, total_trash_msg): def update_trash_screen_on_scroll(self, total_trash_msg):
"""Load more data on scroll down""" """Load more data on scroll down"""
@ -1686,13 +1673,11 @@ class Trash(Screen):
class Page(Screen): class Page(Screen):
"""Page Screen show widgets of page""" """Page Screen class for kivy Ui"""
pass
class Create(Screen): class Create(Screen):
"""Creates the screen widgets""" """Creates Screen class for kivy Ui"""
def __init__(self, **kwargs): def __init__(self, **kwargs):
"""Getting Labels and address from addressbook""" """Getting Labels and address from addressbook"""
@ -1712,7 +1697,7 @@ class Create(Screen):
class Setting(Screen): class Setting(Screen):
"""Setting the Screen components""" """Setting Screen for kivy Ui"""
exp_text = "By default, if you send a message to someone and he is offline for more than two days, Bitmessage will\ exp_text = "By default, if you send a message to someone and he is offline for more than two days, Bitmessage will\
send the message again after an additional two days. This will be continued with exponential backoff\ send the message again after an additional two days. This will be continued with exponential backoff\
forever; messages will be resent after 5, 10, 20 days ect. until the receiver acknowledges them.\ forever; messages will be resent after 5, 10, 20 days ect. until the receiver acknowledges them.\
@ -1725,6 +1710,7 @@ class Setting(Screen):
Clock.schedule_once(self.init_ui, 0) Clock.schedule_once(self.init_ui, 0)
def init_ui(self, dt=0): def init_ui(self, dt=0):
"""Initialization for Ui"""
menu_items = [{"text": f"{i}"} for i in ['System Setting', 'U.S. English', 'italiano', menu_items = [{"text": f"{i}"} for i in ['System Setting', 'U.S. English', 'italiano',
'Esperanto', 'dansk', 'Deutsch', 'Pirate English', 'francais', 'Esperanto', 'dansk', 'Deutsch', 'Pirate English', 'francais',
'Nederlands', 'norsk bokmal', 'polski', 'portugues europeu']] 'Nederlands', 'norsk bokmal', 'polski', 'portugues europeu']]
@ -1738,11 +1724,12 @@ class Setting(Screen):
) )
def set_caller(self): def set_caller(self):
"""set_caller module"""
self.menu.caller = self.ids.drop_item self.menu.caller = self.ids.drop_item
# self.menu.use_icon_item = False
self.menu.target_height = 150 self.menu.target_height = 150
def set_item(self, instance): def set_item(self, instance):
"""set_item module for menu selection"""
self.ids.drop_item.set_item(instance.text) self.ids.drop_item.set_item(instance.text)
self.menu.dismiss() self.menu.dismiss()
@ -2424,13 +2411,14 @@ class NavigateApp(MDApp):
self.root.ids.sc7.ids.add_random_bx.clear_widgets() self.root.ids.sc7.ids.add_random_bx.clear_widgets()
def open_payment_layout(self, sku): def open_payment_layout(self, sku):
"""It basically open up a payment layout for kivy Ui"""
pml = PaymentMethodLayout() pml = PaymentMethodLayout()
self.product_id = sku self.product_id = sku
self.custom_sheet = MDCustomBottomSheet(screen=pml) self.custom_sheet = MDCustomBottomSheet(screen=pml)
self.custom_sheet.open() self.custom_sheet.open()
def initiate_purchase(self, method_name): def initiate_purchase(self, method_name):
# self.custom_sheet.dismiss() """initiate_purchase module"""
print("Purchasing {} through {}".format(self.product_id, method_name)) print("Purchasing {} through {}".format(self.product_id, method_name))
def _after_scan(self, text): def _after_scan(self, text):
@ -2443,7 +2431,7 @@ class NavigateApp(MDApp):
class GrashofPopup(BoxLayout): class GrashofPopup(BoxLayout):
"""Moule for save contacts and error messages""" """GrashofPopup class for kivy Ui"""
valid = False valid = False
@ -2525,46 +2513,35 @@ class GrashofPopup(BoxLayout):
class InfoLayout(BoxLayout, RectangularElevationBehavior): class InfoLayout(BoxLayout, RectangularElevationBehavior):
pass """InfoLayout class for kivy Ui"""
class AvatarSampleWidget(ILeftBody, Image): class AvatarSampleWidget(ILeftBody, Image):
"""Avatar Sample Widget""" """AvatarSampleWidget class for kivy Ui"""
pass
class IconLeftSampleWidget(ILeftBodyTouch, MDIconButton): class IconLeftSampleWidget(ILeftBodyTouch, MDIconButton):
"""Left icon sample widget""" """IconLeftSampleWidget class for kivy Ui"""
pass
class IconRightSampleWidget(IRightBodyTouch, MDIconButton): class IconRightSampleWidget(IRightBodyTouch, MDIconButton):
"""Right icon sample widget""" """IconRightSampleWidget class for kivy Ui"""
pass
class TimeTagRightSampleWidget(IRightBodyTouch, MDLabel): class TimeTagRightSampleWidget(IRightBodyTouch, MDLabel):
"""Right icon sample widget""" """TimeTagRightSampleWidget class for Ui"""
pass
class ToggleBtn(IRightBodyTouch, MDSwitch): class ToggleBtn(IRightBodyTouch, MDSwitch):
"""Right toggle button widget""" """ToggleBtn class for kivy Ui"""
pass
class CheckboxLeftSampleWidget(ILeftBodyTouch, MDCheckbox): class CheckboxLeftSampleWidget(ILeftBodyTouch, MDCheckbox):
"""Left icon sample widget""" """CheckboxLeftSampleWidget class for kivy Ui"""
pass
class MailDetail(Screen): # pylint: disable=too-many-instance-attributes class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
"""MailDetail Screen uses to show the detail of mails""" """MailDetail Screen class for kivy Ui"""
to_addr = StringProperty() to_addr = StringProperty()
from_addr = StringProperty() from_addr = StringProperty()
@ -2725,7 +2702,7 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
class MyaddDetailPopup(BoxLayout): class MyaddDetailPopup(BoxLayout):
"""MyaddDetailPopup pop is used for showing my address detail""" """MyaddDetailPopup class for kivy Ui"""
address_label = StringProperty() address_label = StringProperty()
address = StringProperty() address = StringProperty()
@ -2754,7 +2731,7 @@ class MyaddDetailPopup(BoxLayout):
class AddbookDetailPopup(BoxLayout): class AddbookDetailPopup(BoxLayout):
"""AddbookDetailPopup pop is used for showing my address detail""" """AddbookDetailPopup class for kivy Ui"""
address_label = StringProperty() address_label = StringProperty()
address = StringProperty() address = StringProperty()
@ -2781,7 +2758,7 @@ class AddbookDetailPopup(BoxLayout):
class ShowQRCode(Screen): class ShowQRCode(Screen):
"""ShowQRCode Screen uses to show the detail of mails""" """ShowQRCode Screen class for kivy Ui"""
address = StringProperty() address = StringProperty()
def qrdisplay(self, instasnce, address): def qrdisplay(self, instasnce, address):
@ -2790,7 +2767,7 @@ class ShowQRCode(Screen):
state.kivyapp.set_toolbar_for_QrCode() state.kivyapp.set_toolbar_for_QrCode()
try: try:
from kivy.garden.qrcode import QRCodeWidget from kivy.garden.qrcode import QRCodeWidget
except Exception as e: except Exception:
from kivy_garden.qrcode import QRCodeWidget from kivy_garden.qrcode import QRCodeWidget
self.address = address self.address = address
self.ids.qr.add_widget(QRCodeWidget(data=address)) self.ids.qr.add_widget(QRCodeWidget(data=address))
@ -2800,7 +2777,7 @@ class ShowQRCode(Screen):
class Draft(Screen): class Draft(Screen):
"""Draft screen is used to show the list of draft messages""" """Draft screen class for kivy Ui"""
data = ListProperty() data = ListProperty()
account = StringProperty() account = StringProperty()
@ -2906,8 +2883,6 @@ class Draft(Screen):
self.ids.scroll_y.scroll_y = 0.06 self.ids.scroll_y.scroll_y = 0.06
total_draft_msg = len(self.ids.ml.children) total_draft_msg = len(self.ids.ml.children)
self.update_draft_screen_on_scroll(total_draft_msg) self.update_draft_screen_on_scroll(total_draft_msg)
else:
pass
def update_draft_screen_on_scroll(self, total_draft_msg, where='', what=''): def update_draft_screen_on_scroll(self, total_draft_msg, where='', what=''):
"""Load more data on scroll down""" """Load more data on scroll down"""
@ -2984,7 +2959,7 @@ class Draft(Screen):
class CustomSpinner(Spinner): class CustomSpinner(Spinner):
"""This class is used for setting spinner size""" """CustomSpinner class for kivy Ui"""
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
"""Method used for setting size of spinner""" """Method used for setting size of spinner"""
@ -2993,7 +2968,7 @@ class CustomSpinner(Spinner):
class Allmails(Screen): class Allmails(Screen):
"""All mails Screen uses screen to show widgets of screens""" """Allmails Screen for kivy Ui"""
data = ListProperty() data = ListProperty()
has_refreshed = True has_refreshed = True
@ -3101,8 +3076,6 @@ class Allmails(Screen):
self.ids.scroll_y.scroll_y = .06 self.ids.scroll_y.scroll_y = .06
load_more = len(self.ids.ml.children) load_more = len(self.ids.ml.children)
self.updating_allmail(load_more) self.updating_allmail(load_more)
else:
pass
def updating_allmail(self, load_more): def updating_allmail(self, load_more):
"""This method is used to update the all mail """This method is used to update the all mail
@ -3193,22 +3166,19 @@ def avatarImageFirstLetter(letter_string):
class Starred(Screen): class Starred(Screen):
"""Starred Screen show widgets of page""" """Starred Screen class for kivy Ui"""
pass
class Archieve(Screen): class Archieve(Screen):
"""Archieve Screen show widgets of page""" """Archieve Screen class for kivy Ui"""
pass
class Spam(Screen): class Spam(Screen):
"""Spam Screen show widgets of page""" """Spam Screen class for kivy Ui"""
pass
class LoadingPopup(Popup): class LoadingPopup(Popup):
"""Class for loading Popup""" """LoadingPopup class for kivy Ui"""
def __init__(self, **kwargs): def __init__(self, **kwargs):
super(LoadingPopup, self).__init__(**kwargs) super(LoadingPopup, self).__init__(**kwargs)
@ -3221,18 +3191,15 @@ class LoadingPopup(Popup):
class AddressDropdown(OneLineIconListItem): class AddressDropdown(OneLineIconListItem):
"""AddressDropdown showns all the addresses""" """AddressDropdown class for kivy Ui"""
pass
class BadgeText(IRightBodyTouch, MDLabel): class BadgeText(IRightBodyTouch, MDLabel):
"""Class for badgetext""" """BadgeText class for kivy Ui"""
pass
class NavigationItem(OneLineAvatarIconListItem): class NavigationItem(OneLineAvatarIconListItem):
"""NavigationItem class is for button behaviour""" """NavigationItem class for kivy Ui"""
badge_text = StringProperty() badge_text = StringProperty()
icon = StringProperty() icon = StringProperty()
active = BooleanProperty(False) active = BooleanProperty(False)
@ -3274,7 +3241,7 @@ class NavigationDrawerSubheader(OneLineListItem):
class AppClosingPopup(Popup): class AppClosingPopup(Popup):
"""Class for app closing popup""" """AppClosingPopup class for kivy Ui"""
def __init__(self, **kwargs): def __init__(self, **kwargs):
super(AppClosingPopup, self).__init__(**kwargs) super(AppClosingPopup, self).__init__(**kwargs)
@ -3291,7 +3258,7 @@ class AppClosingPopup(Popup):
class SenderDetailPopup(Popup): class SenderDetailPopup(Popup):
"""SenderDetailPopup pop is used for showing my address detail""" """SenderDetailPopup class for kivy Ui"""
to_addr = StringProperty() to_addr = StringProperty()
from_addr = StringProperty() from_addr = StringProperty()
@ -3327,7 +3294,7 @@ class SenderDetailPopup(Popup):
class OneLineListTitle(OneLineListItem): class OneLineListTitle(OneLineListItem):
"""class for long press behaviour""" """OneLineListTitle class for kivy Ui"""
__events__ = ('on_long_press', ) __events__ = ('on_long_press', )
long_press_time = NumericProperty(1) long_press_time = NumericProperty(1)
@ -3373,7 +3340,7 @@ class OneLineListTitle(OneLineListItem):
class ToAddrBoxlayout(BoxLayout): class ToAddrBoxlayout(BoxLayout):
"""class for BoxLayout behaviour""" """ToAddrBoxlayout class for kivy Ui"""
to_addr = StringProperty() to_addr = StringProperty()
def set_toAddress(self, to_addr): def set_toAddress(self, to_addr):
@ -3382,13 +3349,11 @@ class ToAddrBoxlayout(BoxLayout):
class ToAddressTitle(BoxLayout): class ToAddressTitle(BoxLayout):
"""class for BoxLayout behaviour""" """ToAddressTitle class for BoxLayout behaviour"""
pass
class RandomBoxlayout(BoxLayout): class RandomBoxlayout(BoxLayout):
"""class for BoxLayout behaviour""" """RandomBoxlayout class for BoxLayout behaviour"""
pass
def esc_markup(msg): def esc_markup(msg):
@ -3399,7 +3364,7 @@ def esc_markup(msg):
class ChatRoom(Screen): class ChatRoom(Screen):
"""class for chatroom screen""" """ChatRoom Screen class for kivy Ui"""
def send_msg(self): def send_msg(self):
"""This method is for sending message""" """This method is for sending message"""
msg = self.ids.message.text msg = self.ids.message.text
@ -3414,7 +3379,7 @@ class ChatRoom(Screen):
class ChatList(Screen): class ChatList(Screen):
"""class for showing chat list""" """ChatList Screen class for kivy Ui"""
queryreturn = ListProperty() queryreturn = ListProperty()
has_refreshed = True has_refreshed = True