Skip to main content

Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.

Project description

PyWebWinUI3

PyWebWinUI3 is a project that helps you easily build WinUI3-style desktop UIs in Python using pywebview.

Features

  • Modern and intuitive WinUI3-style UI components
  • Rapid desktop app development with Python
  • Svelte-based FrontEnd integration
  • Custom fonts and Fluent icon support

Installation & Build

You can install PyWebWinUI3 directly from PyPI:

pip install PyWebWinUI3

Usage

You can define your UI using XAML files and control the app with Python. See the example/ folder for more details.

Minimal Example

from pywebwinui3 import MainWindow, loadPage

app = MainWindow("PyWebWinUI3", "./app.ico")
app.addSettings("Settings.xaml")
app.addPage("Dashboard.xaml")
app.addPage("Test.xaml")

# Set values for UI bindings
app.values["system.theme"] = "dark"

app.start()

XAML Example (Settings.xaml)

<Page path="settings" icon="\ue713" name="Settings" title="Settings">
	<Box>
		<Horizontal>
			<Text>App theme</Text>
			<Space />
			<Select value="system.theme">
				<Option value="dark">Dark</Option>
				<Option value="light">Light</Option>
				<Option value="system">Use system setting</Option>
			</Select>
		</Horizontal>
	</Box>
	<!-- ...more UI elements... -->
</Page>

More

  • See example/example.py and the XAML files in example/ for advanced usage.

Contributing

  • PRs and issues are welcome!
  • You can contribute Svelte components, Python modules, UI improvements, and more.

License

Apache-2.0

This README was generated using AI (GitHub Copilot).

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pywebwinui3-1.0.0b42.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebwinui3-1.0.0b42-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file pywebwinui3-1.0.0b42.tar.gz.

File metadata

  • Download URL: pywebwinui3-1.0.0b42.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pywebwinui3-1.0.0b42.tar.gz
Algorithm Hash digest
SHA256 e983b2f4cdb115132b3a47711ec0d365cc46ec4f31d49edf4779699dc4fd9a17
MD5 99ea1e530e305675ed9ddc5560f5b60f
BLAKE2b-256 cf1a1664bbfaf32b57350c2f3b27208db48fc97563a91b835cfb5922c17c1b15

See more details on using hashes here.

File details

Details for the file pywebwinui3-1.0.0b42-py3-none-any.whl.

File metadata

  • Download URL: pywebwinui3-1.0.0b42-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pywebwinui3-1.0.0b42-py3-none-any.whl
Algorithm Hash digest
SHA256 195ef41efcb6ff5707b9e808495a53c56948a1be33c1e0d4055ef9366d699ed4
MD5 744a1bd670c2f43844833d5acd78fc3e
BLAKE2b-256 5a7b81c576053216466ec31f8e4e0cc0cea6f395e8849bbbb7f33cf9ba851dd0

See more details on using hashes here.

Supported by

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