'Initialize The Ux part of electrum. This function performs the basic
tasks of setting up the ui.'

@profiler
def init_ui(self):

    from weakref import ref
    self.funds_error = False
    self.screens = {}
    Factory.register('AnimatedPopup', module='electrum_gui.kivy.uix.dialogs')
    Factory.register('QRCodeWidget', module='electrum_gui.kivy.uix.qrcodewidget')
    self.root.manager = self.root.ids['manager']
    self.history_screen = None
    self.contacts_screen = None
    self.send_screen = None
    self.invoices_screen = None
    self.receive_screen = None
    self.requests_screen = None
    self.icon = 'icons/electrum.png'
    self.tabs = self.root.ids['tabs']
