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
{{ message }}
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Additional options can be passed to `eel.start()` as keyword arguments.
86
86
87
87
Some of the options include the mode the app is in (e.g. 'chrome'), the port the app runs on, the host name of the app, and adding additional command line flags.
88
88
89
-
As of Eel 1.0.0, the following options are available to `start()`:
89
+
As of Eel v0.11.0, the following options are available to `start()`:
90
90
-**mode**, a string specifying what browser to use (e.g. `'chrome'`, `'electron'`, `'edge'`, `'custom'`). Can also be `None` or `False` to not open a window. *Default: `'chrome'`*
91
91
-**host**, a string specifying what hostname to use for the Bottle server. *Default: `'localhost'`)*
92
92
-**port**, an int specifying what port to use for the Bottle server. Use `0` for port to be picked automatically. *Default: `8000`*.
@@ -97,6 +97,8 @@ As of Eel 1.0.0, the following options are available to `start()`:
97
97
-**position**, a tuple of ints specifying the (left, top) of the main window in pixels *Default: `None`*
98
98
-**geometry**, a dictionary specifying the size and position for all windows. The keys should be the relative path of the page, and the values should be a dictionary of the form `{'size': (200, 100), 'position': (300, 50)}`. *Default: {}*
99
99
-**close_callback**, a lambda or function that is called when a websocket to a window closes (i.e. when the user closes the window). It should take two arguments; a string which is the relative path of the page that just closed, and a list of other websockets that are still open. *Default: `None`*
100
+
-**app**, an instance of Bottle which will be used rather than creating a fresh one. This can be used to install middleware on the
101
+
instance before starting eel, e.g. for session management, authentication, etc.
0 commit comments