Questions tagged [eel]

A little Python library for making simple Electron-like HTML/JS GUI apps.

152 questions
2
votes
2 answers

How to pass a json object from a Python function to Javascript with Eel where you can use and manipulate the json

This question may be a bit confusing, so let me give you some background. Eel is a Python module where you can take functions made in Python and use them in Javascript, and vice versa. What I want to do is take a json made from a Python function,…
Jerry Bi
  • 321
  • 6
  • 24
1
vote
0 answers

Hide and show window in python eel application

I have a small application in eel that deploys some list of task. I want the window to be hidden after the user finishes the process and to be shown again when certain date time conditions are met. I want the window to be shown again with a…
juanjo
  • 47
  • 4
1
vote
1 answer

Image not loading before Javascript+Python function ends

I'm using python with eel to communicate with a local website as frontend. My code should display an image on a web page while in the middle of a long python function. The image only appears after the python function is executed, even though
1
vote
0 answers

eel to executable in Python

I am trying to build an app using eel library (app.py). My file imports two more .py files from the "utils" folder in the same directory. The html and css files are located in the "web" folder in the same directory. I am using the following command…
1
vote
0 answers

Python Eel - Close windows from js when connection to eel is lost

During dev it's a pain to close all the eel windows when you need to restart eel for python code changes. For development purposes, and since we don't yet have live-reload for python using eel, it would be helpful to close all the windows when the…
BAR
  • 15,909
  • 27
  • 97
  • 185
1
vote
1 answer

Can't make executable file from eel app in python

When I try to create an executable with auto_py_to_exe it builds fine, but when I run it it throws an error: Failed to execute script 'main' due to unhandled exception: 'NoneType' object has no attribute 'write' Traceback (most recent call…
crybaby
  • 37
  • 1
  • 6
1
vote
0 answers

Python Eel - WebSocket connection to 'wss://cable.coingecko.com/cable' failed:

I have hard time in solving this problem when using Eel. I've used the free CoinGeckoAPI to display widgets in my page (using this template). Everything seemed fine until I checked the console of chrome devtools and found out these errors: It seems…
1
vote
1 answer

Bundle R with a python exe application (using Pyinstaller)

I'm working on a python application using Eel framework and I'm using the python subprocess library to execute an R script. It works completely fine on my computer, but not in any other computer since it doesn't have R installed (and obviously R…
1
vote
0 answers

JS doesn't recognize a python function (using eel)

This is my JS function: async function get_days(){ **b = await eel.get_events('ofek')();** alert(b); startPoint = new Date(year, month - 1, 1).getDay(); // 0=Sunday numberOfDaysInMonth = new Date(year, month, 0).getDate(); // setting…
ofek tal
  • 21
  • 3
1
vote
1 answer

cant run a python script from javascript using eel

so for a good time i was searching for a way to run a python script directly from JavaScript and that was when I found something called eel which is supposed to do that so I followed what the documentation is saying and everything looks right, I hit…
Milad
  • 77
  • 1
  • 2
  • 7
1
vote
1 answer

Using Eel calling JavaScript function in python only when a condition is True

Describe the problem I am trying to call a JavaScript function but only when a if condition evaluates to True in Python. I'm working on a Music player project with Pygame and Eel, I want to call the JS function to change Song cover image…
gracyashhh
  • 89
  • 1
  • 11
1
vote
1 answer

How to click a Button automatically with Javascript from Python using Js2py

I am using eel in order to connect the frontent(HTML,CSS and JS) and backend with Python. I want to click the button element automatically when a if condition states to true in python. As far as I've searched I came across Js2py to be the easiest…
gracyashhh
  • 89
  • 1
  • 11
1
vote
2 answers

Is there any way to add a logo of the GUI application made by using Eel Python?

I am building an GUI application by using Eel Python. The first thing I noticed that - By default the application has chrome icon that I have to change it. But I didn't find any method to do it. So Is their any way to change the icon of the…
1
vote
0 answers

How to close eel? or start code with a separate process?

I want to close the browser and to continue the code. def run(): @eel.expose def end_browser(): print("YES2") eel.end() eel.close() os._exit(0) eel.init('web') eel.start("test.html", size=(700,700)) …
sortfact
  • 21
  • 3
1
vote
0 answers

Python Capture Frame without stopping VideoStream

Video Stream Video Frame Capture Is there any way to get these both to run simultaneously? Like making the video stream run in the bg or something. Video Stream: def gen(camera): while True: frame = camera.get_frame() yield…
1
2
3
10 11