Skip to content

Commit bd940bb

Browse files
committed
Update with 1.7 info
1 parent e198db6 commit bd940bb

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33

44
# Changelog
55

6+
## 1.7
7+
Released 08/06/2017
8+
- `New` [All] Add a basic test suite and continuous integration. #88
9+
- `New` [All] Add a background_color parameter to create_window, which specifies the default color of the webview window. Refer to examples/loading_indicator.py for example use. Thanks to @shivaprsdv. #90
10+
- `New` [Cocoa] Disable backspace navigation. Thanks to @shivaprsdv. #102
11+
- `New` [Cocoa] Implementation of window.print() and window.confirm method. Thanks to @shivaprsdv. #97
12+
- `Fix` [Cocoa] Fix non-existing localization string in save file dialog
13+
- `New` [Winforms] Disable all the shortcut keys of web navigation
14+
- `Fix` [Winforms] Fix load_html failing sometimes due thread violation
15+
- `Fix` [GTK] Implement fall-through to QT, when GTK is present, but not GTK.WebKit.
16+
617
## 1.6
718
Released 29/03/2017
819
- `New` [All] Quit confirmation dialog #31

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,25 @@ an application scaffold and boilerplate code for a real-world application.
9292

9393
## API
9494

95-
- `webview.create_window(title, url="", width=800, height=600, resizable=True, fullscreen=False, min_size=(200, 100)), strings={}, confirm_quit=False)`
95+
- `webview.create_window(title, url='', width=800, height=600, resizable=True, fullscreen=False, min_size=(200, 100)), strings={}, confirm_quit=False, background_color='#FFF')`
9696
Create a new WebView window. Calling this function will block application execution, so you have to execute your
9797
program logic in a separate thread.
98-
`strings` is a dictionary with localized strings that overwrites default strings. Localized strings are defined in localization.py
98+
`title` - Window title
99+
`url` - URL to load
100+
`width` - Window width. Default is 800px.
101+
`height` - Window height. Default is 600px.
102+
`resizable` - Whether window can be resized. Default is True
103+
`fullscreen` - Whether to start in fullscreen mode. Default is False
104+
`min_size` - a (width, height) tuple that specifies a minimum window size. Default is 200x100
105+
`strings` - a dictionary with localized strings
106+
`confirm_quit` - Whether to display a quit confirmation dialog. Default is False
107+
`background_color` - Background color of the window displayed before webview is loaded. Specified as a hex color. Default is white.
108+
`strings` - a dictionary with localized strings. Default strings and their keys are defined in localization.py
109+
110+
These functions below must be invoked after webview windows is created with create_window(). Otherwise an exception is thrown.
99111

100112
- `webview.load_url(url)`
101-
Load a new URL in the previously created WebView window. This function must be invoked after WebView windows is created with create_window(). Otherwise an exception is thrown.
113+
Load a new URL in the previously created WebView window.
102114

103115
- `webview.load_html(content)`
104116
Loads HTML content in the WebView window
@@ -133,5 +145,6 @@ For Windows, you get MSHTML (Trident) in all its glory. The version depends on t
133145

134146
Use py2app on OS X and pyinstaller on Windows. For reference setup.py files, look in `examples/py2app_setup.py`. Pyinstaller builds a working executable out of the box, however you might need to Python.Runtime.dll (of pythonnet) to the target directory.
135147

148+
136149
# VirtualEnv issues
137150
Under virtualenv on OS X, a window created with pywebview has issues with keyboard focus and Cmd+Tab. This behaviour is caused by the Python interpretor that comes with virtualenv. To solve this issue, you need to overwrite `your_venv/bin/python` with the Python interpretor found on your system. Alternatively you can configure your virtual environment to use another Python interpretor as described [here](https://virtualenv.pypa.io/en/stable/userguide/#using-virtualenv-without-bin-python).

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
author_email="[email protected]",
2525
description=("A cross-platform lightweight native wrapper around a web view component"),
2626
url="http://github.com/r0x0r/pywebview",
27-
download_url="https://github.com/r0x0r/pywebview/archive/1.6.tar.gz",
27+
download_url="https://github.com/r0x0r/pywebview/archive/1.7.tar.gz",
2828
keywords=["gui", "webkit", "html", "web"],
2929
extras_require=extras_require,
30-
version="1.6",
30+
version="1.7",
3131
packages=["webview",],
3232
license="New BSD license",
3333
classifiers=[

0 commit comments

Comments
 (0)