|
@ -153,9 +153,12 @@ class Fin_gui: |
|
|
self.fen.title('Bellagio') |
|
|
self.fen.title('Bellagio') |
|
|
self.fen.config(background=self.bg_color) |
|
|
self.fen.config(background=self.bg_color) |
|
|
|
|
|
|
|
|
self.name_frame = ['banque', 'mise', 'argent'] |
|
|
if machine.argent - machine.argent_depart > 0: |
|
|
|
|
|
self.name_frame = ['banque', 'Gain', 'argent'] |
|
|
|
|
|
else: |
|
|
|
|
|
self.name_frame = ['banque', 'Perte', 'argent'] |
|
|
self.frame = [tk.LabelFrame(self.fen, background=self.bg_color, labelanchor='n', text=i) for i in self.name_frame] |
|
|
self.frame = [tk.LabelFrame(self.fen, background=self.bg_color, labelanchor='n', text=i) for i in self.name_frame] |
|
|
self.name_info = [machine.bank, 0, machine.argent] |
|
|
self.name_info = [machine.bank, machine.argent-machine.argent_depart, machine.argent] |
|
|
self.info = [tk.Label(self.frame[i], background=self.bg_color, text=self.name_info[i], width=8, font=('Helvetica', 36, 'bold')) for i in range(3)] |
|
|
self.info = [tk.Label(self.frame[i], background=self.bg_color, text=self.name_info[i], width=8, font=('Helvetica', 36, 'bold')) for i in range(3)] |
|
|
self.column = [1, 2, 5] |
|
|
self.column = [1, 2, 5] |
|
|
|
|
|
|
|
@ -167,13 +170,13 @@ class Fin_gui: |
|
|
self.info[i].grid() |
|
|
self.info[i].grid() |
|
|
|
|
|
|
|
|
self.quit = tk.Button(self.fen, width=40, text ="Quitter", command = self.fen.destroy) |
|
|
self.quit = tk.Button(self.fen, width=40, text ="Quitter", command = self.fen.destroy) |
|
|
self.quit.grid(columnspan=3, column=2, row=3) |
|
|
self.quit.place(x=300, y=400) |
|
|
|
|
|
|
|
|
self.fen.mainloop() |
|
|
self.fen.mainloop() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Fdj: |
|
|
class Fdj: |
|
|
"""#Test pour savoir si le joueur est majeur et à le droit de rentrer dans le casino""" |
|
|
"""Test pour savoir si le joueur est majeur et à le droit de rentrer dans le casino""" |
|
|
def __init__(self): |
|
|
def __init__(self): |
|
|
|
|
|
|
|
|
self.est_majeur = False |
|
|
self.est_majeur = False |
|
|