# -*- coding: utf-8 -*- 

## local UI import
import pages
import myvars
"""
try:
    from icons import preload
except:
    print("No icons package")
"""

def Init(main_screen):
    pages.InitPasswordPage(main_screen)
    pages.InitScanPage(main_screen)
    myvars.PasswordPage._Caller = myvars.ScanPage
    
def API(main_screen):
    
    if main_screen != None:
        main_screen.PushCurPage()
        main_screen.SetCurPage(myvars.ScanPage)
        main_screen.Draw()
        main_screen.SwapAndShow()


