Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit ef28428

Browse files
committed
fix errors
1 parent e970718 commit ef28428

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
::: flet_webview.types.WebviewConsoleMessageEvent
1+
::: flet_webview.types.WebViewConsoleMessageEvent
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
::: flet_webview.types.WebviewJavaScriptEvent
1+
::: flet_webview.types.WebViewJavaScriptEvent

docs/webview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
::: flet_webview.webview.Webview
1+
::: flet_webview.webview.WebView
22
options:
33
show_labels: true

src/flet_webview/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from .types import (
22
LogLevelSeverity,
33
RequestMethod,
4-
WebviewConsoleMessageEvent,
5-
WebviewJavaScriptEvent,
6-
WebviewScrollEvent,
4+
WebViewConsoleMessageEvent,
5+
WebViewJavaScriptEvent,
6+
WebViewScrollEvent,
77
)
88
from .webview import WebView

src/flet_webview/types.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
__all__ = [
77
"RequestMethod",
88
"LogLevelSeverity",
9-
"WebviewScrollEvent",
10-
"WebviewConsoleMessageEvent",
11-
"WebviewJavaScriptEvent",
9+
"WebViewScrollEvent",
10+
"WebViewConsoleMessageEvent",
11+
"WebViewJavaScriptEvent",
1212
]
1313

1414

@@ -45,7 +45,7 @@ class LogLevelSeverity(Enum):
4545

4646

4747
@dataclass
48-
class WebviewScrollEvent(ft.ControlEvent):
48+
class WebViewScrollEvent(ft.ControlEvent):
4949
x: float
5050
"""The value of the horizontal offset with the origin being at the leftmost of the `WebView`."""
5151

@@ -54,7 +54,7 @@ class WebviewScrollEvent(ft.ControlEvent):
5454

5555

5656
@dataclass
57-
class WebviewConsoleMessageEvent(ft.ControlEvent):
57+
class WebViewConsoleMessageEvent(ft.ControlEvent):
5858
message: str
5959
"""The message written to the console."""
6060

@@ -63,7 +63,7 @@ class WebviewConsoleMessageEvent(ft.ControlEvent):
6363

6464

6565
@dataclass
66-
class WebviewJavaScriptEvent(ft.ControlEvent):
66+
class WebViewJavaScriptEvent(ft.ControlEvent):
6767
message: str
6868
"""The message to be displayed in the window."""
6969

src/flet_webview/webview.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
from .types import (
77
RequestMethod,
8-
WebviewConsoleMessageEvent,
9-
WebviewJavaScriptEvent,
10-
WebviewScrollEvent,
8+
WebViewConsoleMessageEvent,
9+
WebViewJavaScriptEvent,
10+
WebViewScrollEvent,
1111
)
1212

1313
__all__ = ["WebView"]
@@ -88,7 +88,7 @@ class WebView(ft.ConstrainedControl):
8888
Works only on the following platforms: iOS, Android and macOS.
8989
"""
9090

91-
on_scroll: ft.OptionalEventCallable[WebviewScrollEvent] = None
91+
on_scroll: ft.OptionalEventCallable[WebViewScrollEvent] = None
9292
"""
9393
Fires when the web page's scroll position changes.
9494
@@ -98,7 +98,7 @@ class WebView(ft.ConstrainedControl):
9898
Works only on the following platforms: iOS, Android and macOS.
9999
"""
100100

101-
on_console_message: ft.OptionalEventCallable[WebviewConsoleMessageEvent] = None
101+
on_console_message: ft.OptionalEventCallable[WebViewConsoleMessageEvent] = None
102102
"""
103103
Fires when a log message is written to the JavaScript console.
104104
@@ -108,7 +108,7 @@ class WebView(ft.ConstrainedControl):
108108
Works only on the following platforms: iOS, Android and macOS.
109109
"""
110110

111-
on_javascript_alert_dialog: ft.OptionalEventCallable[WebviewJavaScriptEvent] = None
111+
on_javascript_alert_dialog: ft.OptionalEventCallable[WebViewJavaScriptEvent] = None
112112
"""
113113
Fires when the web page attempts to display a JavaScript alert() dialog.
114114

0 commit comments

Comments
 (0)