Skip to content

Commit e7c4e5c

Browse files
committed
4.2 info
1 parent 5613a24 commit e7c4e5c

File tree

6 files changed

+37
-3
lines changed

6 files changed

+37
-3
lines changed

docs/.vuepress/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,16 @@ module.exports = {
5454
'/examples/': [
5555
'cef',
5656
'change_url',
57+
'close_confirm',
5758
'confirmation_dialog',
5859
'cookies',
5960
'css_load',
6061
'close_confirm',
6162
'debug',
6263
'destroy_window',
6364
'events',
65+
'expose',
66+
'focus',
6467
'frameless',
6568
'fullscreen',
6669
'get_elements',

docs/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 4.2
4+
5+
_Released 22/06/2023_
6+
7+
### ⚡ Features
8+
9+
- [All] `webview.create_window(focus=False)` to create a non-focusable window. Thanks @mi4code #1030.
10+
11+
### 🚀 Improvements
12+
13+
- [All] Modernization of project infrastructure + typing. Thanks @demberto.
14+
- [Winforms] Top level menu item support. Thanks @zhengxiaoyao0716.
15+
- [Winforms] Disable touchpad elastic overscroll. Thanks @firai.
16+
17+
### 🐞 Bug fixes
18+
19+
- [Winforms] Unable to load DLL 'WebView2Loader.dll': The specified module could not be found. Thanks @kawana77b #1078
20+
- [Cocoa] Fix missing pip dependency `pyobjc-framework-security`.
21+
322
## 4.1
423

524
_Released 02/05/2023_

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ actionLink: /guide/
77
footer: BSD Licensed | Copyright © 2014–present Roman Sirokov
88
---
99
<div class='center version'>
10-
Current version: <strong>4.1</strong><br/>
10+
Current version: <strong>4.2</strong><br/>
1111
<a href='/changelog'>What's new</a>
1212
</div>
1313

docs/examples/focus.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Expose
2+
3+
Create a non-focusable window that can be useful for onscreen floating tools.
4+
5+
``` python
6+
import webview
7+
8+
if __name__ == '__main__':
9+
webview.create_window('Nonfocusable window', html='<html><head></head><body><p>You shouldnt be able to type into this window...</p><input type="text"><p>...but still you can click elements in this window...</p><input type="checkbox"></body></html>', focus=False)
10+
webview.start()
11+
```

docs/guide/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
``` python
77
webview.create_window(title, url=None, html=None, js_api=None, width=800, height=600,
88
x=None, y=None, resizable=True, fullscreen=False, min_size=(200, 100),
9-
hidden=False, frameless=False, easy_drag=True,
9+
hidden=False, frameless=False, easy_drag=True, focus=True,
1010
minimized=False, on_top=False, confirm_close=False, background_color='#FFFFFF',
1111
transparent=False, text_select=False, zoomable=False, draggable=False,
1212
server=http.BottleServer, server_args={}, localization=None)
@@ -28,6 +28,7 @@ Create a new _pywebview_ window and returns its instance. Window is not shown un
2828
* `hidden` - Create a window hidden by default. Default is False
2929
* `frameless` - Create a frameless window. Default is False.
3030
* `easy_drag` - Easy drag mode for frameless windows. Window can be moved by dragging any point. Default is True. Note that easy_drag has no effect with normal windows. To control dragging on an element basis, see [drag area](/guide/api.html#drag-area) for details.
31+
* `focus` - Create a non-focusable window if False. Default is True.
3132
* `minimized` - Start in minimized mode
3233
* `on_top` - Set window to be always on top of other windows. Default is False.
3334
* `confirm_close` - Whether to display a window close confirmation dialog. Default is False

examples/focus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import webview
22

33
"""
4-
This example demonstrates the 'focus' window option (which can be usefull for onscreen floating tools).
4+
This example demonstrates a non-focusable window, which can be useful for onscreen floating tools.
55
"""
66

77
if __name__ == '__main__':

0 commit comments

Comments
 (0)