Foircing pywebview 3.2 in the requiremets as 3.3 is not working with cef

This commit is contained in:
RemixDev 2020-06-30 19:18:52 +02:00
parent e500b9b7fa
commit a05fbca02e
2 changed files with 8 additions and 3 deletions

View file

@ -23,8 +23,13 @@ def url_ok(url, port):
def save_position():
window = webview.windows[0]
x = int(window.x)
y = int(window.y)
# workaround for window position issue in windows
if sys.platform == "win32":
y = window.x
x = window.y
else:
x = int(window.x)
y = int(window.y)
w = int(window.width)
h = int(window.height)
if x < 0: x = 0

View file

@ -1,5 +1,5 @@
deemix>=1.0.23
flask
flask-socketio
pywebview
pywebview==3.2
cefpython3; platform_system== "Windows"