Commit 3a68b09d authored by Thorfin89's avatar Thorfin89

Couleur de fond

parent 60e3a60f
......@@ -9,7 +9,7 @@ from PIL import Image, ImageTk
import csv
mute = False # le son n'est pas coupé au démarrage
bg_color = "gray"
bg_color = "#063248"
# Chargement du fichier CSV contenant les informations : Nom, Pays, Type, Url, Logo
......@@ -83,7 +83,7 @@ class Pupitre:
# boutons radio arrière
btn_back = ttk.Button(self.bandeau, image=self.icon_back, command=self.radio_back, style="BW.TLabel")
btn_back.place(width=48, height=32, x=110, y=10)
btn_back.place(width=48, height=32, x=105, y=10)
# bouton pause
btn_play = ttk.Button(self.bandeau, image=self.icon_pause, command=self.radio_pause, style="BW.TLabel")
......@@ -99,7 +99,7 @@ class Pupitre:
# bouton radio avant
btn_forward = ttk.Button(self.bandeau, image=self.icon_forward, command=self.radio_forward, style="BW.TLabel")
btn_forward.place(width=48, height=32, x=362, y=10)
btn_forward.place(width=48, height=32, x=367, y=10)
# bouton page avant
btn_pagef = ttk.Button(self.bandeau, image=self.icon_pagef, command=self.page_forward, style="BW.TLabel")
......@@ -186,7 +186,7 @@ class Pupitre:
# affiche le nom de la radio sélectionnée
self.lbl_info_radio.config(text=radios_list[num_radio]['Nom'],
font=('Helvetica', 18), bg=bg_color, fg="white")
font=('Helvetica', 16), bg=bg_color, fg="white")
self.num_radio_selected = num_radio
def switch_sound(self): # bascule on/off du son
......@@ -218,15 +218,8 @@ class Pupitre:
# affichage de l'info sur la radio en cours d'audition
self.lbl_info_radio = tk.Label(self.menu)
self.lbl_info_radio.place(width=280, height=30, x=10, y=270)
self.lbl_info_radio.place(width=270, height=30, x=10, y=270)
self.lbl_info_radio.config(bg=bg_color)
"""
# affichage de l'info sur l'application dans le bas
self.lbl_info = tk.Label(self.menu, text="WebRadioPi © Thorfin89", anchor=CENTER)
self.lbl_info.config(bg=bg_color, fg="white", font=('Helvatical bold', 8))
self.lbl_info.place(width=180, height=16, x=60, y=460)
"""
def boucle(self): # boucle principale de tkinter
self.root.mainloop()
38
\ No newline at end of file
32
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment