Skip to main content

HTML to GUI

Project description

html_loader

LoaderHTML

Arguments: name: str="Document" — Window's name, icon: str | None=None — Window's icon, width: int=700, heigth: int=700

Functions:

  • Thread(fun) — start function from thread (decorator)
  • load_html(code: str) — load code
  • load_from_url(url: str) — load code from url
  • load_file(name: str) — load code from file
  • load_file_absolute_path(name: str) — load code from file by absolute path
  • run() — show window

Example:

from html_loader import LoaderHTML

loader = LoaderHTML("Test", "icon.png")
loader.load_file("index.html")

# this function will start and run until it ends without affecting the window
@load.Thread
def main():
    url = input("url:")
    loader.load_from_url(url)

loader.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html_loader-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

html_loader-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page