fixing state import
This commit is contained in:
parent
d859db4004
commit
ec77ea9fa6
|
@ -1,7 +1,7 @@
|
|||
from turtle import pd
|
||||
from pybitmessage.get_platform import platform
|
||||
from pybitmessage import kivy_helper_search
|
||||
from helper_sql import sqlExecute
|
||||
from pybitmessage.helper_sql import sqlExecute
|
||||
from functools import partial
|
||||
from kivy.clock import Clock
|
||||
from kivy.properties import (
|
||||
|
@ -13,7 +13,7 @@ from kivymd.uix.dialog import MDDialog
|
|||
from kivymd.uix.label import MDLabel
|
||||
from kivy.uix.screenmanager import Screen
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.baseclass.common import (
|
||||
avatarImageFirstLetter, toast,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from bmconfigparser import BMConfigParser
|
||||
from helper_sql import sqlExecute, sqlQuery
|
||||
from pybitmessage.bmconfigparser import BMConfigParser
|
||||
from pybitmessage.helper_sql import sqlExecute, sqlQuery
|
||||
from functools import partial
|
||||
from kivy.clock import Clock
|
||||
from kivy.properties import (
|
||||
|
@ -9,14 +9,14 @@ from kivy.properties import (
|
|||
from kivy.uix.screenmanager import Screen
|
||||
from kivymd.uix.label import MDLabel
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.baseclass.common import (
|
||||
showLimitedCnt, toast, ThemeClsColor,
|
||||
avatarImageFirstLetter, CutsomSwipeToDeleteItem,
|
||||
ShowTimeHistoy
|
||||
)
|
||||
from pybitmessage.baseclass.maildetail import MailDetail
|
||||
# from pybitmessage.baseclass.maildetail import MailDetail
|
||||
# from pybitmessage.baseclass.trash import Trash
|
||||
|
||||
|
||||
|
@ -155,7 +155,7 @@ class Allmails(Screen):
|
|||
else:
|
||||
src_mng_obj = self.parent.parent
|
||||
src_mng_obj.screens[11].clear_widgets()
|
||||
src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
# src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
src_mng_obj.current = 'mailDetail'
|
||||
else:
|
||||
instance.ids.delete_msg.disabled = False
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import time
|
||||
|
||||
from pybitmessage import kivy_helper_search
|
||||
from bmconfigparser import BMConfigParser
|
||||
from helper_sql import sqlExecute
|
||||
from pybitmessage.bmconfigparser import BMConfigParser
|
||||
from pybitmessage.helper_sql import sqlExecute
|
||||
from functools import partial
|
||||
from addresses import decodeAddress
|
||||
from pybitmessage.addresses import decodeAddress
|
||||
from kivy.clock import Clock
|
||||
from kivy.properties import (
|
||||
ListProperty,
|
||||
|
@ -13,13 +13,13 @@ from kivy.properties import (
|
|||
from kivy.uix.screenmanager import Screen
|
||||
from kivymd.uix.label import MDLabel
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.baseclass.common import (
|
||||
showLimitedCnt, toast, ThemeClsColor,
|
||||
SwipeToDeleteItem, ShowTimeHistoy
|
||||
)
|
||||
from pybitmessage.baseclass.maildetail import MailDetail
|
||||
# from pybitmessage.baseclass.maildetail import MailDetail
|
||||
|
||||
|
||||
class Draft(Screen):
|
||||
|
@ -137,7 +137,7 @@ class Draft(Screen):
|
|||
else:
|
||||
src_mng_obj = self.parent.parent
|
||||
src_mng_obj.screens[11].clear_widgets()
|
||||
src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
# src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
src_mng_obj.current = 'mailDetail'
|
||||
else:
|
||||
instance.ids.delete_msg.disabled = False
|
||||
|
|
|
@ -16,13 +16,13 @@ from kivymd.uix.label import MDLabel
|
|||
|
||||
from pybitmessage import state
|
||||
|
||||
from common import (
|
||||
from pybitmessage.baseclass.common import (
|
||||
showLimitedCnt, avatarImageFirstLetter,
|
||||
ThemeClsColor, toast, SwipeToDeleteItem,
|
||||
ShowTimeHistoy
|
||||
)
|
||||
from maildetail import MailDetail
|
||||
from trash import Trash
|
||||
# from maildetail import MailDetail
|
||||
# from trash import Trash
|
||||
|
||||
|
||||
class Inbox(Screen):
|
||||
|
@ -182,7 +182,7 @@ class Inbox(Screen):
|
|||
else:
|
||||
src_mng_obj = self.parent.parent
|
||||
src_mng_obj.screens[11].clear_widgets()
|
||||
src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
# src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
src_mng_obj.current = "mailDetail"
|
||||
else:
|
||||
instance.ids.delete_msg.disabled = False
|
||||
|
@ -223,7 +223,7 @@ class Inbox(Screen):
|
|||
def update_trash(self):
|
||||
"""Update trash screen mails which is deleted from inbox"""
|
||||
self.manager.parent.ids.sc5.clear_widgets()
|
||||
self.manager.parent.ids.sc5.add_widget(Trash())
|
||||
# self.manager.parent.ids.sc5.add_widget(Trash())
|
||||
# try:
|
||||
# self.parent.screens[4].clear_widgets()
|
||||
# self.parent.screens[4].add_widget(Trash())
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from kivy.clock import Clock
|
||||
from kivy.properties import StringProperty
|
||||
from kivy.uix.screenmanager import Screen
|
||||
|
||||
from network import objectracker, stats
|
||||
from pybitmessage.network import objectracker, stats
|
||||
|
||||
|
||||
class NetworkStat(Screen):
|
||||
|
|
|
@ -15,7 +15,7 @@ from kivymd.uix.list import (
|
|||
from pybitmessage.baseclass.common import toast
|
||||
|
||||
# import queues
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
|
||||
class Payment(Screen):
|
||||
|
|
|
@ -13,7 +13,7 @@ from pybitmessage import state
|
|||
from pybitmessage.addresses import decodeAddress
|
||||
from datetime import datetime
|
||||
|
||||
from common import toast
|
||||
from pybitmessage.baseclass.common import toast
|
||||
|
||||
|
||||
class LoadingPopup(Popup):
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from pybitmessage import identiconGeneration
|
||||
from pybitmessage import kivy_helper_search
|
||||
from bmconfigparser import BMConfigParser
|
||||
from pybitmessage.bmconfigparser import BMConfigParser
|
||||
from functools import partial
|
||||
from helper_sql import sqlExecute
|
||||
from pybitmessage.helper_sql import sqlExecute
|
||||
from kivy.clock import Clock
|
||||
from kivy.factory import Factory
|
||||
from kivy.properties import StringProperty, ListProperty
|
||||
|
@ -10,13 +10,13 @@ from kivy.properties import StringProperty, ListProperty
|
|||
from kivy.uix.screenmanager import Screen
|
||||
from kivymd.uix.label import MDLabel
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.baseclass.common import (
|
||||
showLimitedCnt, ThemeClsColor, avatarImageFirstLetter,
|
||||
toast, SwipeToDeleteItem, ShowTimeHistoy
|
||||
)
|
||||
from pybitmessage.baseclass.maildetail import MailDetail
|
||||
# from pybitmessage.baseclass.maildetail import MailDetail
|
||||
|
||||
|
||||
class Sent(Screen):
|
||||
|
@ -189,7 +189,7 @@ class Sent(Screen):
|
|||
else:
|
||||
src_mng_obj = self.parent.parent
|
||||
src_mng_obj.screens[11].clear_widgets()
|
||||
src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
# src_mng_obj.screens[11].add_widget(MailDetail())
|
||||
src_mng_obj.current = 'mailDetail'
|
||||
else:
|
||||
instance.ids.delete_msg.disabled = False
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from pybitmessage.get_platform import platform
|
||||
from bmconfigparser import BMConfigParser
|
||||
from helper_sql import sqlExecute, sqlQuery
|
||||
# from pybitmessage.bmconfigparser import BMConfigParser
|
||||
from pybitmessage.helper_sql import sqlExecute, sqlQuery
|
||||
from functools import partial
|
||||
from kivy.clock import Clock
|
||||
from kivy.properties import (
|
||||
|
@ -12,7 +12,7 @@ from kivymd.uix.dialog import MDDialog
|
|||
from kivymd.uix.label import MDLabel
|
||||
from kivy.uix.screenmanager import Screen
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.baseclass.common import (
|
||||
toast, showLimitedCnt, ThemeClsColor,
|
||||
|
|
|
@ -18,7 +18,7 @@ from pybitmessage.bmconfigparser import BMConfigParser
|
|||
# from debug import logger
|
||||
from functools import partial
|
||||
from pybitmessage.helper_sql import sqlExecute, sqlQuery
|
||||
from pybitmessage.kivymd.app import MDApp
|
||||
from kivymd.app import MDApp
|
||||
from kivy.clock import Clock
|
||||
from kivy.core.clipboard import Clipboard
|
||||
from kivy.core.window import Window
|
||||
|
@ -47,7 +47,7 @@ from kivy.uix.screenmanager import RiseInTransition, SlideTransition, FallOutTra
|
|||
from pybitmessage import queues
|
||||
from pybitmessage.semaphores import kivyuisignaler
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
from kivymd.uix.bottomsheet import MDCustomBottomSheet
|
||||
|
||||
from kivy.lang import Observable
|
||||
|
@ -58,8 +58,8 @@ import ast
|
|||
|
||||
from pybitmessage.baseclass.common import toast
|
||||
|
||||
from qr_scanner.zbarcam import ZBarCam
|
||||
from pyzbar.pyzbar import ZBarSymbol
|
||||
# from qr_scanner.zbarcam import ZBarCam
|
||||
# from pyzbar.pyzbar import ZBarSymbol
|
||||
|
||||
if platform != "android":
|
||||
from kivy.config import Config
|
||||
|
|
Reference in New Issue
Block a user