Update logging imports
This commit is contained in:
parent
be6adecf38
commit
35a926f604
|
@ -10,6 +10,7 @@ All saved addresses are managed in Addressbook
|
|||
"""
|
||||
|
||||
import os
|
||||
import logging
|
||||
from functools import partial
|
||||
|
||||
from kivy.clock import Clock
|
||||
|
@ -28,8 +29,9 @@ from pybitmessage.bitmessagekivy.baseclass.common import (
|
|||
)
|
||||
from pybitmessage.bitmessagekivy.baseclass.popup import SavedAddressDetailPopup
|
||||
from pybitmessage.bitmessagekivy.baseclass.addressbook_widgets import HelperAddressBook
|
||||
from debug import logger
|
||||
from helper_sql import sqlExecute
|
||||
from pybitmessage.helper_sql import sqlExecute
|
||||
|
||||
logger = logging.getLogger('default')
|
||||
|
||||
|
||||
class AddressBook(Screen, HelperAddressBook):
|
||||
|
|
|
@ -12,10 +12,11 @@ from kivy.uix.boxlayout import BoxLayout
|
|||
from kivy.uix.screenmanager import Screen
|
||||
from kivy.app import App
|
||||
|
||||
from backend.address_generator import AddressGenerator # pylint: disable=import-error
|
||||
from kivymd.uix.behaviors.elevation import RectangularElevationBehavior
|
||||
|
||||
from pybitmessage.backend.address_generator import AddressGenerator
|
||||
from pybitmessage.bitmessagekivy.baseclass.common import toast
|
||||
from bmconfigparser import config
|
||||
from pybitmessage.bmconfigparser import config
|
||||
|
||||
|
||||
class Login(Screen):
|
||||
|
|
|
@ -30,9 +30,9 @@ from pybitmessage.bitmessagekivy.baseclass.common import (
|
|||
)
|
||||
from pybitmessage.bitmessagekivy.baseclass.popup import SenderDetailPopup
|
||||
from pybitmessage.bitmessagekivy.get_platform import platform
|
||||
from helper_sql import sqlQuery
|
||||
from helper_sent import delete, retrieve_message_details
|
||||
from helper_inbox import trash
|
||||
from pybitmessage.helper_sql import sqlQuery
|
||||
from pybitmessage.helper_sent import delete, retrieve_message_details
|
||||
from pybitmessage.helper_inbox import trash
|
||||
|
||||
|
||||
class OneLineListTitle(OneLineListItem):
|
||||
|
|
|
@ -9,9 +9,9 @@ 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
|
||||
|
||||
import state
|
||||
from pybitmessage import state
|
||||
|
||||
|
||||
class NetworkStat(Screen):
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
All the popup are managed here.
|
||||
|
||||
"""
|
||||
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
from kivy.clock import Clock
|
||||
|
@ -20,8 +20,9 @@ from pybitmessage.bitmessagekivy.get_platform import platform
|
|||
|
||||
from pybitmessage.bitmessagekivy.baseclass.common import toast
|
||||
|
||||
from addresses import decodeAddress
|
||||
from debug import logger
|
||||
from pybitmessage.addresses import decodeAddress
|
||||
|
||||
logger = logging.getLogger('default')
|
||||
|
||||
|
||||
class AddressChangingLoader(Popup):
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
Generate QRcode of saved addresses in addressbook.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from kivy.app import App
|
||||
from kivy.uix.screenmanager import Screen
|
||||
from kivy.properties import StringProperty
|
||||
from kivy_garden.qrcode import QRCodeWidget
|
||||
from debug import logger
|
||||
|
||||
logger = logging.getLogger('default')
|
||||
|
||||
|
||||
class ShowQRCode(Screen):
|
||||
|
|
|
@ -7,6 +7,7 @@ QR code Scan Screen used in message composer to get recipient address
|
|||
"""
|
||||
|
||||
import os
|
||||
import logging
|
||||
import cv2
|
||||
|
||||
from kivy.clock import Clock
|
||||
|
@ -20,13 +21,13 @@ from kivy.uix.screenmanager import Screen
|
|||
|
||||
from pybitmessage.bitmessagekivy.get_platform import platform
|
||||
|
||||
from debug import logger
|
||||
logger = logging.getLogger('default')
|
||||
|
||||
|
||||
class ScanScreen(Screen):
|
||||
"""ScanScreen is for scaning Qr code"""
|
||||
# pylint: disable=W0212
|
||||
camera_avaialbe = BooleanProperty(False)
|
||||
camera_available = BooleanProperty(False)
|
||||
previous_open_screen = StringProperty()
|
||||
pop_up_instance = ObjectProperty()
|
||||
|
||||
|
@ -42,13 +43,13 @@ class ScanScreen(Screen):
|
|||
is_cam_open = cap.isOpened()
|
||||
while is_cam_open:
|
||||
logger.debug('Camera is available!')
|
||||
self.camera_avaialbe = True
|
||||
self.camera_available = True
|
||||
break
|
||||
else:
|
||||
logger.debug("Camera is not available!")
|
||||
self.camera_avaialbe = False
|
||||
self.camera_available = False
|
||||
else:
|
||||
self.camera_avaialbe = True
|
||||
self.camera_available = True
|
||||
|
||||
def get_screen(self, screen_name, instance=None):
|
||||
"""This method is used for getting previous screen name"""
|
||||
|
|
|
@ -2,14 +2,18 @@
|
|||
UI Singnaler for kivy interface
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from threading import Thread
|
||||
from kivy.app import App
|
||||
import queues
|
||||
import state
|
||||
|
||||
from debug import logger
|
||||
from pybitmessage import queues
|
||||
from pybitmessage import state
|
||||
|
||||
from pybitmessage.bitmessagekivy.baseclass.common import kivy_state_variables
|
||||
|
||||
logger = logging.getLogger('default')
|
||||
|
||||
|
||||
class UIkivySignaler(Thread):
|
||||
"""Kivy ui signaler"""
|
||||
|
|
Reference in New Issue
Block a user