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.pyand the XAML files inexample/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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e983b2f4cdb115132b3a47711ec0d365cc46ec4f31d49edf4779699dc4fd9a17
|
|
| MD5 |
99ea1e530e305675ed9ddc5560f5b60f
|
|
| BLAKE2b-256 |
cf1a1664bbfaf32b57350c2f3b27208db48fc97563a91b835cfb5922c17c1b15
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
195ef41efcb6ff5707b9e808495a53c56948a1be33c1e0d4055ef9366d699ed4
|
|
| MD5 |
744a1bd670c2f43844833d5acd78fc3e
|
|
| BLAKE2b-256 |
5a7b81c576053216466ec31f8e4e0cc0cea6f395e8849bbbb7f33cf9ba851dd0
|