simple_browser.py 457 B

12345678910111213141516
  1. """
  2. This example demonstrates how to create a webview window.
  3. Adapted from a pywebview example:
  4. https://github.com/r0x0r/pywebview/blob/master/examples/simple_browser.py
  5. """
  6. import webview
  7. def main():
  8. # Create a non-resizable webview window with 800x600 dimensions
  9. webview.create_window("Simple browser", "http://pynsist.readthedocs.io/",
  10. width=800, height=600, resizable=False)
  11. if __name__ == '__main__':
  12. main()