r0x0r/pywebview

how can I reander gui after html loading is completed ?

Closed this issue · 2 comments

Specification

  • pywebview version: 5.1
  • operating system: Win11
  • web renderer: chromium

Description

I use pywebview to encapsulate flask app, when I run the code, the gui be rendered is always before html loading is completed,this led to a blank interface for a while.

Before html loading is completed.
image

After html loading is completed.
image

Thanks.

There is a loading animation example to address cases like this https://github.com/r0x0r/pywebview/blob/master/examples/loading_animation.py

Thanks, it works for me.