<reponame>SinaDashti/patenteProject
from os import environ
from tkinter import Tk
from dotenv import load_dotenv

from patenteSQL import ExamRawData
from gui.gui import Patente
from utils.utils import Consts
from utils.utils import (
    DBConnection,
)

load_dotenv()

db = DBConnection(
    host=environ.get("HOST"),
    db_name=environ.get("DATABASE_NAME"),
    user=environ.get("MYSQL_USER"),
    password=<PASSWORD>("PASSWORD"),
)

if __name__ == "__main__":
    erd = ExamRawData(db, Consts)
    df = erd.df
    root = Tk()
    gui = Patente(root, df)
    root.mainloop()

# ls | grep -P "^[0-9]+.png" | xargs -d"\n" rm
from os import environ
from tkinter import Tk
from dotenv import load_dotenv

from patenteSQL import ExamRawData
from gui.gui import Patente
from utils.utils import Consts
from utils.utils import (
    DBConnection,
)

load_dotenv()

db = DBConnection(
    host=environ.get("HOST"),
    db_name=environ.get("DATABASE_NAME"),
    user=environ.get("MYSQL_USER"),
    password=<PASSWORD>("PASSWORD"),
)

if __name__ == "__main__":
    erd = ExamRawData(db, Consts)
    df = erd.df
    root = Tk()
    gui = Patente(root, df)
    root.mainloop()

# ls | grep -P "^[0-9]+.png" | xargs -d"\n" rm
# ls | grep -P "^[0-9]+.png" | xargs -d"\n" rm