Commit 71c2891f authored by Thorfin89's avatar Thorfin89

Ajout des icones des boutons

parent 06cf3cb5
72
\ No newline at end of file
51
\ No newline at end of file
......@@ -6,7 +6,7 @@
import os
import tkinter as tk
from tkinter import ttk
from tkinter import VERTICAL
from tkinter import VERTICAL, HORIZONTAL
from tkinter import Scale, StringVar, DoubleVar
......@@ -40,15 +40,15 @@ class Pupitre:
# boutons de commande
btn_play = ttk.Button(menu, text="Play", command=self.radio_play)
btn_play.pack()
btn_play.grid(row=1, column=0, padx=10)
btn_pause = ttk.Button(menu, text="Pause", command=self.radio_pause)
btn_pause.pack()
btn_pause.grid(row=1, column=1, padx=10)
btn_stop = ttk.Button(menu, text="Stop", command=self.radio_stop)
btn_stop.pack()
btn_stop.grid(row=1, column=2, padx=10)
# potentiomètre de volume
lecture = open("init", "r") # on charge configuration sauvegardée
volume_init = lecture.read()
vol_potar = Scale(menu, from_=100, to=0, orient=VERTICAL, length=200, command=self.volume)
vol_potar = Scale(menu, from_=0, to=100, tickinterval=20, orient=HORIZONTAL, length=200, label="Volume", command=self.volume)
vol_potar.set(volume_init)
vol_potar.pack(padx=10, pady=5)
vol_potar.grid(pady=10, row=2, column=0, columnspan=3)
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