Skip to content

Commit

Permalink
4.2 info
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0r committed Jun 22, 2023
1 parent 5613a24 commit e7c4e5c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ module.exports = {
'/examples/': [
'cef',
'change_url',
'close_confirm',
'confirmation_dialog',
'cookies',
'css_load',
'close_confirm',
'debug',
'destroy_window',
'events',
'expose',
'focus',
'frameless',
'fullscreen',
'get_elements',
Expand Down
19 changes: 19 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 4.2

_Released 22/06/2023_

### ⚡ Features

- [All] `webview.create_window(focus=False)` to create a non-focusable window. Thanks @mi4code #1030.

### 🚀 Improvements

- [All] Modernization of project infrastructure + typing. Thanks @demberto.
- [Winforms] Top level menu item support. Thanks @zhengxiaoyao0716.
- [Winforms] Disable touchpad elastic overscroll. Thanks @firai.

### 🐞 Bug fixes

- [Winforms] Unable to load DLL 'WebView2Loader.dll': The specified module could not be found. Thanks @kawana77b #1078
- [Cocoa] Fix missing pip dependency `pyobjc-framework-security`.

## 4.1

_Released 02/05/2023_
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ actionLink: /guide/
footer: BSD Licensed | Copyright © 2014–present Roman Sirokov
---
<div class='center version'>
Current version: <strong>4.1</strong><br/>
Current version: <strong>4.2</strong><br/>
<a href='/changelog'>What's new</a>
</div>

Expand Down
11 changes: 11 additions & 0 deletions docs/examples/focus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Expose

Create a non-focusable window that can be useful for onscreen floating tools.

``` python
import webview

if __name__ == '__main__':
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)
webview.start()
```
3 changes: 2 additions & 1 deletion docs/guide/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
``` python
webview.create_window(title, url=None, html=None, js_api=None, width=800, height=600,
x=None, y=None, resizable=True, fullscreen=False, min_size=(200, 100),
hidden=False, frameless=False, easy_drag=True,
hidden=False, frameless=False, easy_drag=True, focus=True,
minimized=False, on_top=False, confirm_close=False, background_color='#FFFFFF',
transparent=False, text_select=False, zoomable=False, draggable=False,
server=http.BottleServer, server_args={}, localization=None)
Expand All @@ -28,6 +28,7 @@ Create a new _pywebview_ window and returns its instance. Window is not shown un
* `hidden` - Create a window hidden by default. Default is False
* `frameless` - Create a frameless window. Default is False.
* `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.
* `focus` - Create a non-focusable window if False. Default is True.
* `minimized` - Start in minimized mode
* `on_top` - Set window to be always on top of other windows. Default is False.
* `confirm_close` - Whether to display a window close confirmation dialog. Default is False
Expand Down
2 changes: 1 addition & 1 deletion examples/focus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import webview

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

if __name__ == '__main__':
Expand Down

0 comments on commit e7c4e5c

Please sign in to comment.