import eel
import sys
from calendarcli.calendargui.createCalendar import getDayList as getday
from calendarcli.path import fullPath
from calendarcli.calendargui.uploadEvent import *
from calendarcli.calendargui.update import updateEvent
from calendarcli.dataManager import deleteByID as dell

eel.init(fullPath('calendargui/web'))

def start():
    print("start GUI...",'\n',str(fullPath('calendargui/web')))
    print("Prase CLRL + C to stop.")
    eel.start('index.html',disable_cache=True)


@eel.expose
def printtext(s:str):
    print(s)

@eel.expose
def deleteByID(a):
    dell(a)