Skip to content

Commit 5c60a04

Browse files
a-teammater0x0r
andauthored
small doc fix: "addEventListener" not "addEventHandler" in api/README.md (#1750)
* Update readme * Refine dependencies * "addEventListener" doc bug in api/README.md --------- Co-authored-by: r0x0r <[email protected]>
1 parent 870a419 commit 5c60a04

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ _pywebview_ provides advanced features like window manipulation functionality, e
1313

1414
_pywebview_ is created by [Roman Sirokov](https://github.com/r0x0r/).
1515

16-
# Getting started
1716

1817
## Install
1918

@@ -33,25 +32,24 @@ webview.start()
3332

3433
Explore _pywebview_ further by reading [documentation](https://pywebview.flowrl.com/guide), exploring [examples](https://pywebview.flowrl.com/examples) or [contributing](https://pywebview.flowrl.com/contributing). If React is your thing, get started right away with [React boilerplate](https://github.com/r0x0r/pywebview-react-boilerplate).
3534

36-
# Contribution
3735

38-
### Consulting services
36+
## Consulting services
3937

4038
If your company is looking for support with _pywebview_ or needs a hand with full-stack development, the author of _pywebview_ is available for hire. As a VAT-registered EU based professional, I specialize in a wide range of technologies, including JavaScript/TypeScript, React/Vue, Python, GIS, SQL databases, API integration, CI/CD pipelines and cloud solutions. For inquiries about availability and pricing details, reach out to [email protected].
4139

42-
### Code Contributors
43-
44-
This project thrives thanks to the contributions of our community. [[Learn how to contribute](docs/contributing/README.md)].
45-
46-
<a href="https://github.com/r0x0r/pywebview/graphs/contributors"><img src="https://opencollective.com/pywebview/contributors.svg?width=890&button=false" /></a>
47-
48-
### Sponsors
40+
## Sponsors
4941

5042

5143
<a href="https://www.lambdatest.com/?utm_source=pywebview&utm_medium=sponsor" target="_blank">
5244
<img src="https://www.lambdatest.com/blue-logo.png" style="vertical-align: middle; padding: 1rem 0 8rem 0;" width="250" height="45" />
5345
</a><br/><br/><br/>
5446

47+
## Code Contributors
48+
49+
This project thrives thanks to the contributions of our community. [[Learn how to contribute](docs/contributing/README.md)].
50+
51+
<a href="https://github.com/r0x0r/pywebview/graphs/contributors"><img src="https://opencollective.com/pywebview/contributors.svg?width=890&button=false" /></a>
52+
5553

5654

5755
Become a financial contributor and help us sustain our community. More donation options are outlined on the [Donating](https://pywebview.flowrl.com/contributing/donating.html) page.

docs/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ _pywebview_ exposes a `window.pywebviewready` event that is fired after `window.
971971
### State events
972972

973973
`pywebview.state` is an `EventTarget` object that fires two events `change` and `delete`. To subscribe to an event, use
974-
`pywebview.state.addEventHandler('change', (e) => {})` or `pywebview.state.addEventHandler('delete', (e) => {})`. State change is stored in the `event.detail` object in form of `{ key, value }`
974+
`pywebview.state.addEventListener('change', (e) => {})` or `pywebview.state.addEventListener('delete', (e) => {})`. State change is stored in the `event.detail` object in form of `{ key, value }`
975975

976976
## Drag area
977977

pyproject.toml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
2729
"Topic :: Software Development :: Libraries :: Application Frameworks",
2830
"Topic :: Software Development :: Libraries :: Python Modules",
2931
"Topic :: Software Development :: User Interfaces",
3032
]
3133
dependencies = [
3234
"pythonnet;sys_platform=='win32'",
33-
"pyobjc-core;sys_platform=='darwin'",
34-
"pyobjc-framework-Cocoa;sys_platform=='darwin'",
35-
"pyobjc-framework-Quartz;sys_platform=='darwin'",
36-
"pyobjc-framework-WebKit;sys_platform=='darwin'",
37-
"pyobjc-framework-security;sys_platform=='darwin'",
38-
"pyobjc-framework-UniformTypeIdentifiers;sys_platform=='darwin'",
35+
"pyobjc-core>=9.0;sys_platform=='darwin'",
36+
"pyobjc-framework-Cocoa>=9.0;sys_platform=='darwin'",
37+
"pyobjc-framework-Quartz>=9.0;sys_platform=='darwin'",
38+
"pyobjc-framework-WebKit>=9.0;sys_platform=='darwin'",
39+
"pyobjc-framework-security>=9.0;sys_platform=='darwin'",
40+
"pyobjc-framework-UniformTypeIdentifiers>=9.0;sys_platform=='darwin'",
3941
"QtPy;sys_platform=='openbsd6'",
40-
"importlib_resources; python_version < '3.7'",
42+
"importlib_resources; python_version < '3.9'",
4143
"proxy_tools",
4244
"bottle",
4345
"typing_extensions"
@@ -54,7 +56,7 @@ qt5 = ["QtPy", "PyQt5", "pyqtwebengine"]
5456
qt6 = ["QtPy", "PyQt6", "PyQt6-WebEngine"]
5557
android = ["jnius"]
5658
ssl = ["cryptography"]
57-
dev = ["ruff", "pre-commit"]
59+
dev = ["ruff", "pre-commit", "pytest", "build", "twine"]
5860

5961
[project.urls]
6062
Homepage = "https://pywebview.flowrl.com/"
@@ -124,6 +126,12 @@ packages = [
124126
[tool.setuptools_scm]
125127
write_to = "webview/_version.py"
126128

129+
[tool.uv]
130+
# Prefer pre-compiled wheels for better installation experience
131+
resolution = "highest"
132+
# Use index strategy that prefers wheels over source distributions
133+
index-strategy = "unsafe-best-match"
134+
127135
[tool.uv.extra-build-dependencies]
128136
jnius = ["Cython"]
129137

0 commit comments

Comments
 (0)