-
-
Notifications
You must be signed in to change notification settings - Fork 791
Closed
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.
Description
What is the problem or limitation you are having?
Currently, the url argument in set_content() is required. But it stands to reason that, if you are directly setting raw HTML content, that content doesn't have a URL associated with it.
What we can currently do is pass an empty string to url:
my_webview.set_content("", content=html_content)
But that's clunky.
Describe the solution you'd like
In the set_content() function, make the url argument optional.
Describe alternatives you've considered
Perhaps #2851 can make this issue obsolete.
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.