Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.18 KB

English | 简体中文

WinUI 3 with Python

This repository provides an example of WinUI 3 with Python. The sample program has the following features:

  • Load an XAML file to layout UI components.
  • Support WinUI 3 controls with Fluent Design System.
  • Apply Mica.
  • Adapt to a high DPI monitor.

py-win32more is used to generate "win32more" for WinUI 3.

Requirement

You are allowed to install py-win32more through the following command:

pip install win32more

Run the sample program

Loading the module for the first time takes time.

py winui-xaml.py

Creating UI without XAML files (and handling events)

You can build your own GUI without writing XAML files.
Also, you can handle events using your own functions just as example shown below.
*This example uses the sample program of RepeatButton.

py winui-click.py