Skip to content

Commit

Permalink
Add script
Browse files Browse the repository at this point in the history
  • Loading branch information
ynkdir committed Jan 13, 2025
1 parent 07206bb commit ebbe75b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/xaml_find_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import re
from pathlib import Path

event_names = set()

for p in Path("win32more/Microsoft/UI/Xaml").glob("**/*.py"):
for line in p.read_text().splitlines():
m = re.match(r"^ (.*) = event\(\)$", line)
if m:
event_names.add(m.group(1))

for name in sorted(event_names):
print(name)

0 comments on commit ebbe75b

Please sign in to comment.