Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WebRadioPi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thorfin89
WebRadioPi
Commits
3a68b09d
Commit
3a68b09d
authored
Jan 31, 2023
by
Thorfin89
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Couleur de fond
parent
60e3a60f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
pupitre.py
pupitre.py
+5
-12
webradiopi.cfg
webradiopi.cfg
+1
-1
No files found.
pupitre.py
View file @
3a68b09d
...
@@ -9,7 +9,7 @@ from PIL import Image, ImageTk
...
@@ -9,7 +9,7 @@ from PIL import Image, ImageTk
import
csv
import
csv
mute
=
False
# le son n'est pas coupé au démarrage
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
# Chargement du fichier CSV contenant les informations : Nom, Pays, Type, Url, Logo
...
@@ -83,7 +83,7 @@ class Pupitre:
...
@@ -83,7 +83,7 @@ class Pupitre:
# boutons radio arrière
# boutons radio arrière
btn_back
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_back
,
command
=
self
.
radio_back
,
style
=
"BW.TLabel"
)
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
=
1
10
,
y
=
10
)
btn_back
.
place
(
width
=
48
,
height
=
32
,
x
=
1
05
,
y
=
10
)
# bouton pause
# bouton pause
btn_play
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_pause
,
command
=
self
.
radio_pause
,
style
=
"BW.TLabel"
)
btn_play
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_pause
,
command
=
self
.
radio_pause
,
style
=
"BW.TLabel"
)
...
@@ -99,7 +99,7 @@ class Pupitre:
...
@@ -99,7 +99,7 @@ class Pupitre:
# bouton radio avant
# bouton radio avant
btn_forward
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_forward
,
command
=
self
.
radio_forward
,
style
=
"BW.TLabel"
)
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
=
36
2
,
y
=
10
)
btn_forward
.
place
(
width
=
48
,
height
=
32
,
x
=
36
7
,
y
=
10
)
# bouton page avant
# bouton page avant
btn_pagef
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_pagef
,
command
=
self
.
page_forward
,
style
=
"BW.TLabel"
)
btn_pagef
=
ttk
.
Button
(
self
.
bandeau
,
image
=
self
.
icon_pagef
,
command
=
self
.
page_forward
,
style
=
"BW.TLabel"
)
...
@@ -186,7 +186,7 @@ class Pupitre:
...
@@ -186,7 +186,7 @@ class Pupitre:
# affiche le nom de la radio sélectionnée
# affiche le nom de la radio sélectionnée
self
.
lbl_info_radio
.
config
(
text
=
radios_list
[
num_radio
][
'Nom'
],
self
.
lbl_info_radio
.
config
(
text
=
radios_list
[
num_radio
][
'Nom'
],
font
=
(
'Helvetica'
,
1
8
),
bg
=
bg_color
,
fg
=
"white"
)
font
=
(
'Helvetica'
,
1
6
),
bg
=
bg_color
,
fg
=
"white"
)
self
.
num_radio_selected
=
num_radio
self
.
num_radio_selected
=
num_radio
def
switch_sound
(
self
):
# bascule on/off du son
def
switch_sound
(
self
):
# bascule on/off du son
...
@@ -218,15 +218,8 @@ class Pupitre:
...
@@ -218,15 +218,8 @@ class Pupitre:
# affichage de l'info sur la radio en cours d'audition
# affichage de l'info sur la radio en cours d'audition
self
.
lbl_info_radio
=
tk
.
Label
(
self
.
menu
)
self
.
lbl_info_radio
=
tk
.
Label
(
self
.
menu
)
self
.
lbl_info_radio
.
place
(
width
=
2
8
0
,
height
=
30
,
x
=
10
,
y
=
270
)
self
.
lbl_info_radio
.
place
(
width
=
2
7
0
,
height
=
30
,
x
=
10
,
y
=
270
)
self
.
lbl_info_radio
.
config
(
bg
=
bg_color
)
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
def
boucle
(
self
):
# boucle principale de tkinter
self
.
root
.
mainloop
()
self
.
root
.
mainloop
()
webradiopi.cfg
View file @
3a68b09d
38
32
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment