Skip to content

sotanakamura/winui-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages