I tried to use cef's PostDelayedTask method, but an error occured:
Traceback (most recent call last):
File "C:\Users\Somewho\Desktop\ceftest.py", line 8, in <module>
cef.PostDelayedTask(cef.TID_UI, 5000, cef.QuitMessageLoop)
AttributeError: module 'cefpython3.cefpython_py36' has no attribute 'PostDelayedTask'
My code:
from cefpython3 import cefpython as cef
import sys
sys.excepthook = cef.ExceptHook
cef.Initialize()
cef.CreateBrowserSync(url = "https://music.yandex.ru")
cef.PostDelayedTask(cef.TID_UI, 5000, cef.QuitMessageLoop) # <-- crash
cef.MessageLoop()
cef.Shutdown()
Please help me. Thanks!
PostDelayedTask was added in commit 7145ffa and will be available in the next release.