You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,17 @@
3
3
4
4
# Changelog
5
5
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.
Create a new WebView window. Calling this function will block application execution, so you have to execute your
97
97
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.
99
111
100
112
-`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.
102
114
103
115
-`webview.load_html(content)`
104
116
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
133
145
134
146
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.
135
147
148
+
136
149
# VirtualEnv issues
137
150
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).
0 commit comments