Skip to content

Commit

Permalink
Changements mineurs
Browse files Browse the repository at this point in the history
  • Loading branch information
banban60 committed Feb 28, 2022
1 parent fd5bb84 commit 32dc002
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion data/soon.txt

This file was deleted.

6 changes: 5 additions & 1 deletion data/users.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"Alban": {
"id": "Alban",
"email": "albanurt@gmail.com",
"email": "alban@gmail.com",
"mdp": "000000",
"money": "20"
},
"Admin": {
"id": "",
"mdp": ""
}
}
11 changes: 6 additions & 5 deletions source/app/BasePage/homeframe.py
Original file line number Diff line number Diff line change
@@ -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)
canvas.place(x=0, y=0)
1 change: 1 addition & 0 deletions source/app/Sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def select_image(name):
def set_color(color):
COLOR = {
'lightgreen': '#EAFCEC',
'green': '#77AB7D',
'entrycolor': '#89DA92',
'gray': '#666666',
'darkgreen': '#45794A',
Expand Down

0 comments on commit 32dc002

Please sign in to comment.