diff --git a/data/soon.txt b/data/soon.txt deleted file mode 100644 index 58df056..0000000 --- a/data/soon.txt +++ /dev/null @@ -1 +0,0 @@ -soon \ No newline at end of file diff --git a/data/users.json b/data/users.json index 784b36e..89ada98 100644 --- a/data/users.json +++ b/data/users.json @@ -1,8 +1,12 @@ { "Alban": { "id": "Alban", - "email": "albanurt@gmail.com", + "email": "alban@gmail.com", "mdp": "000000", "money": "20" + }, + "Admin": { + "id": "", + "mdp": "" } } \ No newline at end of file diff --git a/source/app/BasePage/homeframe.py b/source/app/BasePage/homeframe.py index 0c11282..b752ea1 100644 --- a/source/app/BasePage/homeframe.py +++ b/source/app/BasePage/homeframe.py @@ -1,25 +1,26 @@ import tkinter as tk - from source.app.Sys import set_color class HomeFrame(tk.Frame): def __init__(self, window): - super().__init__(window, width=853, height=584) + super().__init__(window, width=599, height=584) self.window = window self.history_canvas = tk.Canvas(self, height=853, width=853, background=set_color('lightgreen'), highlightthickness=0) - self.history_canvas.create_text(555, 50, text="Historique des transactions", font=('Roboto', 20, 'bold'), + self.history_canvas.create_rectangle(100, 50, 500, 504, fill=set_color('green'), width=5) + + self.history_canvas.create_text(300, 50, text="Historique des transactions", font=('Roboto', 20, 'bold'), fill=set_color("darkgreen")) self.left_widgets() - self.history_canvas.pack() + self.history_canvas.place(x=254, y=0) def left_widgets(self): canvas = tk.Canvas(self, width=257, height=585, bg=set_color("entrycolor"), highlightthickness=0) canvas.create_line(1000, 0, -10, 0, fill=set_color("lightgreen")) canvas.create_line(1000, 520, -10, 520, fill=set_color("lightgreen")) - canvas.place(x=0,y=0) \ No newline at end of file + canvas.place(x=0, y=0) \ No newline at end of file diff --git a/source/app/Sys.py b/source/app/Sys.py index 563bbd6..a3e144b 100644 --- a/source/app/Sys.py +++ b/source/app/Sys.py @@ -11,6 +11,7 @@ def select_image(name): def set_color(color): COLOR = { 'lightgreen': '#EAFCEC', + 'green': '#77AB7D', 'entrycolor': '#89DA92', 'gray': '#666666', 'darkgreen': '#45794A',