This repository has been archived on 2024-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-03/src/bitmessagekivy/kivy_state.py

43 lines
1.2 KiB
Python

# pylint: disable=too-many-instance-attributes, too-few-public-methods
"""
Kivy State variables are assigned here, they are separated from state.py
=================================
"""
import os
import threading
class KivyStateVariables(object):
"""This Class hold all the kivy state variables"""
def __init__(self):
self.selected_address = ''
self.navinstance = None
self.mail_id = 0
self.my_address_obj = None
self.detail_page_type = None
self.ackdata = None
self.status = None
self.screen_density = None
self.msg_counter_objs = None
self.check_sent_acc = None
self.sent_count = 0
self.inbox_count = 0
self.trash_count = 0
self.draft_count = 0
self.all_count = 0
self.searching_text = ''
self.search_screen = ''
self.send_draft_mail = None
self.is_allmail = False
self.in_composer = False
self.available_credit = 0
self.in_sent_method = False
self.in_search_mode = False
self.image_dir = os.path.abspath(os.path.join('images', 'kivy'))
self.kivyui_ready = threading.Event()
self.file_manager = None
self.manager_open = False