music_player_sur_raspberry_pi
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
music_player_sur_raspberry_pi [2022/01/06 10:59] – [Caractéristiques] serge | music_player_sur_raspberry_pi [2022/01/06 15:40] (Version actuelle) – [ScreenManager avec Scroll vs Swipe] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Music Player sur Raspberry Pi ====== | ====== Music Player sur Raspberry Pi ====== | ||
+ | <WRAP center round box 60% centeralign> | ||
+ | **{{tagpage> | ||
+ | **[[http:// | ||
+ | </ | ||
+ | <WRAP center round box 40% centeralign> | ||
+ | **[[les_pages_kivy_en_details|Les pages Kivy en détails]]** | ||
+ | </ | ||
- | =====Caractéristiques===== | + | <WRAP center round box 40% centeralign> |
+ | **Un bel exemple d' | ||
+ | </ | ||
+ | |||
+ | =====Détails===== | ||
+ | |||
+ | ====Caractéristiques==== | ||
* Raspbian avec Bureau LXDE | * Raspbian avec Bureau LXDE | ||
* Python 3 | * Python 3 | ||
Ligne 26: | Ligne 39: | ||
dtoverlay=disable-bt | dtoverlay=disable-bt | ||
- | Sur une pi3 | + | Sur une pi3, ajouter: |
dtoverlay=pi3-disable-wifi | dtoverlay=pi3-disable-wifi | ||
dtoverlay=pi3-disable-bt | dtoverlay=pi3-disable-bt | ||
Ligne 32: | Ligne 45: | ||
====Exécution au démarrage==== | ====Exécution au démarrage==== | ||
- | <code bash> | + | Les sources doivent être dans / |
- | nano /home/pi/.bashrc | + | Créer un fichier: |
- | + | nano /home/pi/.config/ | |
- | Ajouter: | + | |
+ | Coller | ||
+ | <code ini> | ||
+ | [Desktop Entry] | ||
+ | Type=Application | ||
+ | Name=Music Player | ||
+ | Exec=/ | ||
+ | </ | ||
Ligne 45: | Ligne 64: | ||
==== Sources==== | ==== Sources==== | ||
+ | * **[[https:// | ||
=====Screen Shot===== | =====Screen Shot===== | ||
{{: | {{: | ||
Ligne 54: | Ligne 73: | ||
{{: | {{: | ||
+ | |||
+ | |||
+ | =====ScreenManager avec Scroll vs Swipe====== | ||
+ | Sur Stackoverflow, | ||
+ | |||
+ | ====Ma solution==== | ||
+ | Dans chaque Screen, je rajoute un on_touch_move | ||
+ | <code python> | ||
+ | def on_touch_move(self, | ||
+ | """ | ||
+ | if touch.dx < -10: | ||
+ | # Définition de l' | ||
+ | self.app.screen_manager.transition.direction = ' | ||
+ | # Bascule | ||
+ | self.app.screen_manager.current = ' | ||
+ | </ | ||
+ | |||
+ | Le défaut de cette solution est qu'il ne faut pas glisser en appuyant sur un Button. | ||
+ | |||
+ | {{tag> |
music_player_sur_raspberry_pi.1641466740.txt.gz · Dernière modification : 2022/01/06 10:59 de serge