108 Commits

Author SHA1 Message Date
Roman Sirokov
370c6a55ca [Edge] Make load_html use http server 2019-08-15 23:43:23 +03:00
Roman
0698b059db pywebview 3.0 (#340)
* Update change_url.md

* Update api.md

* Update installation.md

* Add Google Analytics

* Fix installation

* 2.4 info

* [Docs] add information about window.pywebview availability

* Update debuggig info about QTWebEngine

* [Docs] Add information about app architecture

* Update cef.md

* [CEF] Fix JS logic not persisting after navigating to another page

* #169 Frameless window (#313)

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* [GTK] partial implementation of frameless window

* [QT] Partial implementation of frameless window

* [QT] implement easy drag

* [Cocoa] Hide standard buttons and make the entire window draggable

* [GTK] implement easy move

* Add frameless tests

* Remove unused parameter

* [Cocoa] Implement free drag

* Revert WebBrowserInterops

* Code cleanup

* Update interop DLLs

* Fix interop dll

* Update docs; Fix tests

* Add example

* Update examples

* [CEF]: Implement support for pyinstaller one-file mode

* [CEF] Fix typo

* [All] Change api_call timeout to 15 seconds

* Update setup.py

* [QT] Simplify QT installation

* New API
Cocoa implementation
Revamped tests and examples

* Fix web engine force setting

* Rename destroy_window to destroy

* Update documentation

* Add documentation for 2.4

* Refactor project structure

* [GTK] New API support

* Rename confirm_quit to confirm_close
Split lifecycle events to shown and loaded

* [GTK] Implement new API
Fix tests

* [QT] New API implementation

* Remove multiprocessing

* [Windows/CEF] New API implementation

* Implement CSRF token
[All] Implement get_element

* Update Flask app example

* Rename get_element to get_elements. Bug fixes.

* [GTK] Implement propert JS-Python bridge for WebKit2 >2.2

* Update documentation

* [Windows/CEF] New API implementation

* Add token test

* [Winforms] Fix js api initialization

* [Cocoa] Fix events

* Debug: print webkit version

* [GTK] Check for old webkit

* [GTK] Fix event issues

* Catch notimlementederror in tests

* Update travis conf with qt from pip

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* [Windows] Preliminary implementation of EdgeHTML based on PR from @HeavenVolkoff

* [docs] Add information about EdgeHTML

* EdgeHTML WIP

* Remove windows.web import

* EdgeHTML improvements. Fix MSHTML evaluate_js

* [Docs] Add information about renderer limitations

* [EdgeHTML] Fix bugs and tests

* Remove window from windows list after it is destroyed

* Fix window object deletion after window is closed via GUI

* [Docs] Add information about renderer codes

* Refactor and fix JS API
Remove multiprocessing example
[MSHTML] Add console.log debug support

* [Travis] Change conf

* [WinForms] Fix fullscreen

* Fix dll installation

* [Windows] Fix DLL bundling

* Update changelog

* [CEF]: Fix JS API

* Update changelog

* Built-in HTTP server implementation

* Add http server test

* Add http server testcd

* Add http server testcd

* [EdgeHTML] allow localhost urls

* Add video example

* Bug fixing

* [Cocoa] Remove media prefs

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* [Travis] Disable QT 5.12 builds

* Update html_load.md
2019-07-07 13:33:37 +03:00
Roman Sirokov
48cb71d653 [All] Change api_call timeout to 15 seconds 2019-04-05 23:49:45 +03:00
Roman
6ee73e7e66 #169 Frameless window (#313)
* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* [GTK] partial implementation of frameless window

* [QT] Partial implementation of frameless window

* [QT] implement easy drag

* [Cocoa] Hide standard buttons and make the entire window draggable

* [GTK] implement easy move

* Add frameless tests

* Remove unused parameter

* [Cocoa] Implement free drag

* Revert WebBrowserInterops

* Code cleanup

* Update interop DLLs

* Fix interop dll

* Update docs; Fix tests

* Add example

* Update examples
2019-02-16 21:33:05 +02:00
Roman
9c785381e9 #15 CEF implementation (#310) 2019-02-12 22:34:22 +02:00
Roman
1043204123 #189: Remove QT4 (#305) 2019-02-04 15:58:18 +02:00
Roman Sirokov
7a4f5c6a79 [All] Add logging formatter 2018-12-23 14:32:38 +02:00
Roman Sirokov
8e6acbb2ec Merge branch 'master' of github.r0x0r:r0x0r/pywebview 2018-12-23 12:24:17 +02:00
Roman Sirokov
ed9b4bca27 [All] Refactor logging to keep its configuration locally 2018-12-23 12:22:59 +02:00
Roman
23ffc1d345 Fix indendation 2018-12-18 00:13:33 +02:00
Roman
884be9169f [macOS] Eval JS fixes 2018-12-18 00:12:47 +02:00
Alexander Rowe
f368fc7a72 Set Window Size Functionality
Added set_window_size to api.
Added for all backends, tested on two of them

```
set_window_size(width, height, uid='master')
```

Tested Platforms:
- cocoa
- winforms

Untested platforms:
- win32
- gtk
- Qt
2018-12-09 23:41:30 +02:00
Roman Sirokov
06525ed5e1 Refactor import logic 2018-09-02 12:05:05 +03:00
Roman Sirokov
185a4bc2d3 Refactor import logic
Introduce PYWEBVIEW_FORCE_GUI environment variable
2018-08-26 14:18:24 +03:00
Wormius
f4959340eb Update __init__.py
When webview.load_css(css, child_uid)  it's used, the interpreter throws:

TypeError: evaluate_js() missing 1 required positional argument: 'uid'

With this change the program already works.
2018-08-09 00:13:48 -05:00
Roman Sirokov
ed7621a6e9 Code cleanup 2018-05-26 00:09:27 +03:00
Roman Sirokov
2b086e4942 Fix multi-window concurrency issues 2018-05-25 12:58:52 +03:00
Roman Sirokov
1b54fdeae6 Change window creation logic to allow subsequent master window openings 2018-05-24 21:42:52 +03:00
Roman
35d2baa4e6 Use QT by default on QT based systems 2018-05-11 12:23:23 +03:00
HucSte
505157fa60 Add support PyQt5 for OpenBSD 6.x! 2018-04-14 21:39:14 +02:00
Shiva Prasad
78e21b50d3 [All] Refactor API calls to remove duplicate code (#208)
Simply replace lots and lots of identical try-except blocks with a
decorator.
2018-04-07 22:41:49 +03:00
Roman
986cc57193 Change start to create_window 2018-04-07 22:41:49 +03:00
Roman
64012f018f [WinForms] Make todos app Windows compatible 2018-04-07 22:41:49 +03:00
Roman Sirokov
4f32fa58b8 [WinForms] Add base_uri support 2018-04-07 22:41:49 +03:00
Roman Sirokov
0783b2c7f3 Revert "Remove base_uri paramter from load_html"
This reverts commit ee59b9412e1b0966116c279b75736aadfd530395.
2018-04-07 22:41:49 +03:00
Roman Sirokov
073e6eb62f Location based implementation of .start() 2018-04-07 22:41:49 +03:00
r0x0r
4f3348dc33 Refactoring and refinements 2018-04-07 22:41:49 +03:00
r0x0r
8b6e9120b9 [WIP] Implementation of webview.start() 2018-04-07 22:41:49 +03:00
Roman
1273fdb3d3 Convert js files to py modules (#193) 2018-03-13 19:40:43 +02:00
Roman
22de1e0f9c evaluate_js, thread safety improvements
- Uniform cross-platform JS type conversion to Python types in evalulate_js
- Thread safety improvements 
- New test runner
2018-03-10 09:23:01 +02:00
Roman
cd19742748 Remove base_uri paramter from load_html (#180) 2018-02-26 00:01:36 +02:00
Roman
640ab8e44a [WinForms] Fix High DPI 2018-02-20 22:08:46 +02:00
Roman
e541968e12 [All] Remove the unused set_js_api function (again) 2018-02-03 01:30:14 +02:00
Roman
f415eca117 [Winforms] Adjust webview_ready event behaviour 2018-02-03 01:28:54 +02:00
Roman
81ad970d36 Merge branch 'multi-window' of https://github.com/r0x0r/pywebview into multi-window 2018-02-03 01:23:21 +02:00
Roman
57c79dd248 [WinForms] Change multi-window not to exit the app on master window close 2018-02-03 01:20:58 +02:00
Shiva Prasad
7aadcd862a [All] Remove obsolete is_running function calls
This is as planned in the commit message to c3f95a5: check that for more
info. To summarise, is_running is not required in multi-window code as
the KeyError block automatically handles its functionality.
2018-02-02 23:14:42 +05:30
Shiva Prasad
54ac82ec90 [All] Remove the unused set_js_api function 2018-02-02 23:10:36 +05:30
Roman
f08a52ce51 [WinForms] Multi-window implementation 2018-02-02 00:53:05 +02:00
Roman
0b8510fed8 Merge branch 'set-title' into multi-window 2018-01-27 00:32:03 +02:00
Shiva Prasad
1a5825f615 [All] Add instance uid to _js_bridge_call
Because _js_bridge_call needs to execute evaluate_js with the uid of the
appropriate instance.
2018-01-26 23:34:19 +05:30
Shiva Prasad
61ab6a66af Merge js_api code from master into multi-window 2018-01-26 22:49:33 +05:30
Roman Sirokov
6514714a54 Set title skeleton + Cocoa implementation 2018-01-26 15:13:59 +02:00
Roman Sirokov
3b462c833b Change the parameter position of js_api 2018-01-04 14:08:17 +02:00
Roman Sirokov
cf369fe389 Refactor GTK
Revise string escaping
2018-01-03 22:07:53 +02:00
Roman Sirokov
557d75be20 [QT] WIP implementation of scriping object in >QT5.5 2017-12-27 15:56:31 +02:00
Shiva Prasad
e661e6a1cd [All] Avoid exporting private methods of api_instance 2017-12-03 08:10:03 +05:30
Shiva Prasad
26917fc294 [All] Fix program hang on window close during JS exec 2017-12-01 12:21:19 +05:30
Roman Sirokov
c9d99c51c1 [All] Fix JSON parsing of custom function results 2017-11-30 00:42:48 +02:00
Shiva Prasad
44104ffd79 [All] Merge relevant changes from master 2017-11-26 11:37:54 +05:30