From 6003c3d5de666c218e6ba7438c960e43ba8fe232 Mon Sep 17 00:00:00 2001 From: Mohaned Abd Elmonsef <6644557+mo0haned@users.noreply.github.com> Date: Wed, 26 Aug 2020 20:16:45 +0200 Subject: [PATCH] Update hello.py "options" is not supported anymore so I changed it with mode = 'electron' --- examples/09 - Eelectron-quick-start/hello.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/examples/09 - Eelectron-quick-start/hello.py b/examples/09 - Eelectron-quick-start/hello.py index c10d9fb7..a59975e1 100644 --- a/examples/09 - Eelectron-quick-start/hello.py +++ b/examples/09 - Eelectron-quick-start/hello.py @@ -1,5 +1,4 @@ import eel - # Set web files folder eel.init('web') @@ -10,11 +9,5 @@ def say_hello_py(x): say_hello_py('Python World!') eel.say_hello_js('Python World!') # Call a Javascript function - -options = { - 'mode': 'custom', - 'args': ['node_modules/electron/dist/electron.exe', '.'] -} - -eel.start('hello.html', options=options) +eel.start('hello.html',mode='electron') #eel.start('hello.html', mode='custom', cmdline_args=['node_modules/electron/dist/electron.exe', '.'])