How to serve static files using webkit view in python gtk application?

I am creating a gtk desktop application. Most of my views are HTML. Therefore, I am using the Python implementation for Webkit. The problem is that I cannot include images, since Webkit does not allow downloading images from the local file system:

<img src="file://{{media_url}}_theme/media/img/eft.png"/>

=> This will cause "It is not allowed to load a local resource."

Is there a way to upload static files like images or css files locally?

+3
source share
2 answers

base64 , html-.

0

@Skami 18 . , URI , src?

0

Source: https://habr.com/ru/post/1777739/


All Articles