Commit 8e569800 authored by Thorfin89's avatar Thorfin89

Diminution de la taille des icones et ajout des bouton avant et arrière

parent 1c9fc908
icons/back.png

7.58 KB | W: | H:

icons/back.png

8.03 KB | W: | H:

icons/back.png
icons/back.png
icons/back.png
icons/back.png
  • 2-up
  • Swipe
  • Onion skin
icons/eject.png

7.4 KB | W: | H:

icons/eject.png

7.65 KB | W: | H:

icons/eject.png
icons/eject.png
icons/eject.png
icons/eject.png
  • 2-up
  • Swipe
  • Onion skin
icons/first.png

7.41 KB | W: | H:

icons/first.png

7.38 KB | W: | H:

icons/first.png
icons/first.png
icons/first.png
icons/first.png
  • 2-up
  • Swipe
  • Onion skin
icons/last.png

580 Bytes

icons/mute.png

8.71 KB | W: | H:

icons/mute.png

8.63 KB | W: | H:

icons/mute.png
icons/mute.png
icons/mute.png
icons/mute.png
  • 2-up
  • Swipe
  • Onion skin
icons/pause.png

6.94 KB | W: | H:

icons/pause.png

6.78 KB | W: | H:

icons/pause.png
icons/pause.png
icons/pause.png
icons/pause.png
  • 2-up
  • Swipe
  • Onion skin
icons/play.png

7.19 KB | W: | H:

icons/play.png

7.55 KB | W: | H:

icons/play.png
icons/play.png
icons/play.png
icons/play.png
  • 2-up
  • Swipe
  • Onion skin
icons/power.png

9.74 KB | W: | H:

icons/power.png

9.43 KB | W: | H:

icons/power.png
icons/power.png
icons/power.png
icons/power.png
  • 2-up
  • Swipe
  • Onion skin
icons/sound_down.png

2.34 KB | W: | H:

icons/sound_down.png

6.84 KB | W: | H:

icons/sound_down.png
icons/sound_down.png
icons/sound_down.png
icons/sound_down.png
  • 2-up
  • Swipe
  • Onion skin
icons/sound_up.png

7.41 KB | W: | H:

icons/sound_up.png

7.74 KB | W: | H:

icons/sound_up.png
icons/sound_up.png
icons/sound_up.png
icons/sound_up.png
  • 2-up
  • Swipe
  • Onion skin
icons/stop.png

5.55 KB | W: | H:

icons/stop.png

6.08 KB | W: | H:

icons/stop.png
icons/stop.png
icons/stop.png
icons/stop.png
  • 2-up
  • Swipe
  • Onion skin
icons/x.png

7.19 KB | W: | H:

icons/x.png

6.98 KB | W: | H:

icons/x.png
icons/x.png
icons/x.png
icons/x.png
  • 2-up
  • Swipe
  • Onion skin
51 57
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# import ---------------------------------- # import ----------------------------------
import tkinter as tk import tkinter as tk
from tkinter import ttk, Scale, HORIZONTAL, CENTER, LEFT, RIGHT, TOP, OUTSIDE from tkinter import ttk, Scale, HORIZONTAL, CENTER, LEFT, RIGHT, TOP
# classes --------------------------------- # classes ---------------------------------
...@@ -18,9 +18,11 @@ class Pupitre: ...@@ -18,9 +18,11 @@ class Pupitre:
self.root.attributes('-fullscreen', False) # < A basculer sur False pour les test sur PC self.root.attributes('-fullscreen', False) # < A basculer sur False pour les test sur PC
# images des boutons # images des boutons
self.icon_back = tk.PhotoImage(file="icons/back.png")
self.icon_play = tk.PhotoImage(file="icons/play.png") self.icon_play = tk.PhotoImage(file="icons/play.png")
self.icon_pause = tk.PhotoImage(file="icons/pause.png") self.icon_pause = tk.PhotoImage(file="icons/pause.png")
self.icon_stop = tk.PhotoImage(file="icons/stop.png") self.icon_stop = tk.PhotoImage(file="icons/stop.png")
self.icon_forward = tk.PhotoImage(file="icons/forward.png")
self.icon_sound = tk.PhotoImage(file="icons/sound_up.png") self.icon_sound = tk.PhotoImage(file="icons/sound_up.png")
self.icon_mute = tk.PhotoImage(file="icons/mute.png") self.icon_mute = tk.PhotoImage(file="icons/mute.png")
...@@ -31,28 +33,35 @@ class Pupitre: ...@@ -31,28 +33,35 @@ class Pupitre:
# noinspection PyTypeChecker # noinspection PyTypeChecker
def zones(self): def zones(self):
# fenêtre Haute : Titre / Menu # fenêtre Haute : Titre / Menu > dim 800x80
bandeau = tk.Frame(self.root, width="800", height="80", bg='gray') bandeau = tk.Frame(self.root, width="800", height="80", bg='gray')
bandeau.pack(side=TOP, expand='True') bandeau.pack(side=TOP, expand='True')
# fenêtre contenant les boutons (vignettes) des radios # fenêtre contenant les boutons (vignettes) des radios > dim 500x400
vignettes = tk.Frame(self.root, width="500", height="400", bg='black') vignettes = tk.Frame(self.root, width="500", height="400", bg='black')
vignettes.pack(side=LEFT, expand='True') vignettes.pack(side=LEFT, expand='True')
# fenêtre d'affichage de la radio en cours de lecture, et des boutons de commande # fenêtre d'affichage de la radio en cours de lecture, et des boutons de commande > dim 300x400
menu = tk.Frame(self.root, width="300", height="400") menu = tk.Frame(self.root, width="300", height="400", bg="#D9D9D9")
menu.pack(side=RIGHT, expand='True') menu.pack(side=RIGHT, expand='True')
x_menu = 30 x_menu = 0
y_menu = 100 y_menu = 200
style = ttk.Style()
style.configure("BW.TLabel", foreground="black", background="#D9D9D9")
# boutons de commande # boutons de commande
btn_play = ttk.Button(menu, image=self.icon_play, text="Play", command=self.radio_play) btn_play = ttk.Button(menu, image=self.icon_back, text="Back", command=None, style="BW.TLabel")
btn_play.place(bordermode=OUTSIDE, width=80, height=80, x=x_menu + 0, y=y_menu + 0) btn_play.place(width=30, height=30, x=x_menu + 45, y=y_menu + 0)
btn_pause = ttk.Button(menu, image=self.icon_pause, text="Pause", command=self.radio_pause) btn_play = ttk.Button(menu, image=self.icon_pause, text="Pause", command=self.radio_pause, style="BW.TLabel")
btn_pause.place(bordermode=OUTSIDE, width=80, height=80, x=x_menu + 80, y=y_menu + 0) btn_play.place(width=30, height=30, x=x_menu + 90, y=y_menu + 0)
btn_stop = ttk.Button(menu, image=self.icon_stop, text="Stop", command=self.radio_stop) btn_pause = ttk.Button(menu, image=self.icon_play, text="Play", command=self.radio_play, style="BW.TLabel")
btn_stop.place(bordermode=OUTSIDE, width=80, height=80, x=x_menu + 160, y=y_menu + 0) btn_pause.place(width=30, height=30, x=x_menu + 135, y=y_menu + 0)
btn_stop = ttk.Button(menu, image=self.icon_stop, text="Stop", command=self.radio_stop, style="BW.TLabel")
btn_stop.place(width=30, height=30, x=x_menu + 180, y=y_menu + 0)
btn_stop = ttk.Button(menu, image=self.icon_forward, text="Forward", command=None, style="BW.TLabel")
btn_stop.place(width=30, height=30, x=x_menu + 225, y=y_menu + 0)
# potentiomètre de volume # potentiomètre de volume
lecture = open("init", "r") # on charge configuration sauvegardée lecture = open("init", "r") # on charge configuration sauvegardée
...@@ -61,15 +70,14 @@ class Pupitre: ...@@ -61,15 +70,14 @@ class Pupitre:
vol_potar = Scale(menu, from_=0, to=100, tickinterval=20, orient=HORIZONTAL, length=240, label="Volume", vol_potar = Scale(menu, from_=0, to=100, tickinterval=20, orient=HORIZONTAL, length=240, label="Volume",
command=self.volume) command=self.volume)
vol_potar.set(volume_init) vol_potar.set(volume_init)
vol_potar.place(bordermode=OUTSIDE, x=x_menu + 0, y=y_menu + 90) vol_potar.place(x=x_menu + 30, y=y_menu + 40)
# boutons de coupure et rétablissement du son # boutons de coupure et rétablissement du son
btn_stop = ttk.Button(menu, image=self.icon_mute, text="Mute", command=self.radio_mute) btn_stop = ttk.Button(menu, image=self.icon_mute, text="Mute", command=self.radio_mute, style="BW.TLabel")
btn_stop.place(bordermode=OUTSIDE, width=80, height=80, x=x_menu + 40, y=y_menu + 170) btn_stop.place(width=30, height=30, x=x_menu + 110, y=y_menu + 120)
btn_stop = ttk.Button(menu, image=self.icon_sound, text="Sound", command=self.radio_sound) btn_stop = ttk.Button(menu, image=self.icon_sound, text="Sound", command=self.radio_sound, style="BW.TLabel")
btn_stop.place(bordermode=OUTSIDE, width=80, height=80, x=x_menu + 120, y=y_menu + 170) btn_stop.place(width=30, height=30, x=x_menu + 160, y=y_menu + 120)
# info appli # info appli
lbl_info = ttk.Label(menu, text="WebRadioPi @thorfin89", anchor=CENTER) lbl_info = ttk.Label(menu, text="WebRadioPi @thorfin89", anchor=CENTER)
lbl_info.place(bordermode=OUTSIDE, width=240, height=16, x=x_menu + 0, y=y_menu + 275) lbl_info.place(width=300, height=16, x=x_menu + 0, y=y_menu + 170)
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