Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/gui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# for PyInstaller to compile it into an executable for Linux
import setuptools
import atexit
import os
import sys
from tkinter import *
import traceback
from pathlib import Path
from tkinter import *
from tkinter import filedialog

import eel
Expand All @@ -21,8 +21,10 @@ def __init__(self):
# creating an instance of ExcelUploader
self.excel_uploader = ExcelUploader()

path_to_web_dir = Path(__file__).resolve().parent / "web"

# initialize eel
eel.init("web")
eel.init(path_to_web_dir)

def start_app(self):
"""
Expand All @@ -31,7 +33,9 @@ def start_app(self):
"""

# cd into templates/base.html to get html path
html_path = os.path.join("templates", "base.html")
html_path = str(
Path(__file__).resolve().parent / "web" / "templates" / "base.html"
)

eel.start(html_path, size=(800, 850), port=8001)

Expand Down