Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

python - How to start eel apps from an exe

I have made app using python eel but I don't want to run it using chrome. I have made a browser using PyQt5 (browser.exe) and want to run my app using the "browser.exe". I also tried it by adding the the exe path in mode but it still runs on chrome. I am giving the code below:

import eel
import pandas as pd


@eel.expose
def remove_data(num):
    df3=pd.read_csv("writer.csv")
    df4=pd.DataFrame(df3)
    df4.drop(index=int(num),axis=0,inplace=True)
    df4.to_csv("writer.csv", index=False)

@eel.expose
def add_data(get_name,get_start,get_end):
    df3=pd.read_csv("writer.csv")
    df4=pd.DataFrame(df3)
    new_data = {"Name": get_name, "Start time": get_start, "End time": get_end}
    df4 = df4.append(new_data, ignore_index=True)
    df4.to_csv("writer.csv", index=False)

@eel.expose
def load_data():
    df=pd.read_csv("writer.csv")
    df2=pd.DataFrame(df)
    for i in range(len(df2)):
        eel.create_work(df2["Name"][i],df2["Start time"][i],df2["End time"][i])
    

#here is the problem
eel.init("templates")
eel.start("index.html",size=(1000,700),mode="D:\Python37\build\exe.win-amd64-3.7\browser.exe")
question from:https://stackoverflow.com/questions/66058380/how-to-start-eel-apps-from-an-exe

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...