====== Le Pendu Pédagogique GTK ====== ===== Que nada ? ===== Ré-écriture en GTK de la version TK ([[https://github.com/CyrilleBiot/pendu-peda | Le Pendu Pédagogique TK]]) avec de nombreuses améliorations. C'est un simple pendu mais pédagogique, c'est à dire puisant les mots dans des bases adaptées aux programmes de l'école primaire et classées en niveaux **CE**, **CM** ou **AUTRES**. ===== En images ===== {{ :python:2020-03-10_11-41.png?direct&800 |}} ===== L'installation ===== Les sources, le matériel de construction d'un paquet DEBIAN et le paquet deb (toute architecture) est disponible sur mon git : https://github.com/CyrilleBiot/pendu-peda-gtk ==== Pour installer directement le paquet .DEB ==== Adapter la version à la dernière version disponible. $ wget https://github.com/CyrilleBiot/pendu-peda-gtk/blob/master/pendu-peda-gtk_0.0.2%2Bnmu2_all.deb $ su # dpkg -i pendu-peda-gtk_0.0.2%2Bnmu2_all.deb (les dépendances sont normalement gérées : il faut simplement le paquet **python3** et **python3-gi**) ==== Lancer depuis le GIT ==== Tester son paquet, sans rien installer depuis le repo du git : $ git clone https://github.com/CyrilleBiot/pendu-peda-gtk.git Clonage dans 'pendu-peda-gtk'... remote: Enumerating objects: 155, done. remote: Counting objects: 100% (155/155), done. remote: Compressing objects: 100% (119/119), done. remote: Total 155 (delta 45), reused 136 (delta 29), pack-reused 0 Réception d'objets: 100% (155/155), 1.68 Mio | 397.00 Kio/s, fait. Résolution des deltas: 100% (45/45), fait. $ cd pendu-peda-gtk/ $ ./source/pendu-peda-gtk.py ==== Pour compiler son propre paquet DEBIAN ==== $ git clone https://github.com/CyrilleBiot/pendu-peda-gtk.git $ cd pendu-peda-gtk/ $ debuild -us -uc (bien sûr modifier ce que vous avez à modifier avant de construire le paquet, sinon autant prendre le paquet .DEB tout prêt à l'emploi) ===== L'interface ===== {{ :python:2020-03-10_11-45.png?direct&800 |}} {{ :python:2020-03-10_11-49.png?direct&800 |}} **Nouvelle version de l'onglet 2** (version 0.3) {{ :python:2020-03-12_16-10.png?direct&800 |}} **Nouvelle version -avec Set d'images- (version 0.4)** {{ :python:2020-04-07_13-33.png?direct&800 |}} ===== Ajouter de nouveaux thèmes ===== Lors de l'installation, 25 thèmes sont installés dans **/usr/share/pendu-peda-gtk/data-files/**. Au premier lancement, ces thèmes sont copiés dans votre **/home/$USER** afin de faciliter l'ajout de nouveaux thèmes. Le dossier de stockage est **~/.config/primtux/pendu-peda-gtk/data-files/** $ ls .config/primtux/pendu-peda-gtk/data-files/ autre-anglais.txt cm-geo-mieux-habiter.txt autre-informatique-kturtle.txt cm_geo_pays-UE.txt autre-informatique-materiel.txt cm-geo-se-deplacer.txt autre-informatique-prog.txt cm-hist-age-industriel.txt autre-liste-francais.txt cm-hist-construction-euro.txt CE-francais-verbe1erG.txt cm-hist-deux-guerres-mondiales.txt CE-francais-verbe3eG.txt cm-hist-la-republique.txt CE-francais-verbe-ir.txt cm_histoirela-revolution-l-empire.txt cm-geo-communiquer.txt cm_histoire-moyen-age.txt cm-geo-espaces-touristiques.txt cm-hist-prehistoire-antiquite.txt cm-geo-espaces-urbains.txt cm-maths-nombres.txt cm-geographie-consommer-en-france.txt cm-maths-polygone.txt cm-geo-lieux.txt Pour ajouter un thème supplémentaire, c'est très simple, il suffit de créer un fichier texte dans ce répertoire en respectant **l'header** suivant (c'est à dire les 3 premières lignes) Elles doivent commencer par **un dièse suivi d'un espace**. Exemple : $ cat cm-hist-construction-euro.txt # CM # Histoire # La construction européenne europe solidarité harmonie .... - Ligne 1 : **# Niveau (cycle)** : soit CE soit CM soit AUTRE - Ligne 2 : **# Domaine d'apprentissage** : Français, Grammaire, Conjugaison, Géométrie, Histoire, TICE, Arts... - Ligne 3 : **# Compétence (le thème)** : verbes 1er groupe, les polygones, etc... - Les autres lignes : 1 mot de recherche par ligne. Autant de ligne que l'on veut. {{ :python:2020-03-10_11-55.png?direct&800 |}} ===== 2 modes d'ajout ====== ==== Soit en USER ==== C'est ce que nous avons vu au point précédent. Très simple. Les nouveaux thèmes ne touchent que le courant de l'utilisateur. ==== Soit via l'administrateur ==== Les thèmes sont directement installés dans le dossier **/usr/share/pendu-peda-gtk/data-files**. Ce répertoire est automatiquement copié dans le dossier de l'**$USER** au premier lancement du logiciel et //uniquement si un dossier éponyme n'existe pas//. Sinon, il vous faudra penser à le supprimer. rm -rf /home/$USER/.config/primtux/pendu-peda-gtk/ ===== Fichiers installés ===== usr/ ├── bin │   └── pendu-peda-gtk └── share ├── applications │   └── pendu-peda-gtk.desktop ├── doc │   └── pendu-peda-gtk │   ├── changelog.gz │   └── copyright ├── man │   └── man6 │   └── pendu-peda-gtk.6.gz └── pendu-peda-gtk ├── data-files │   ├── autre-anglais.txt │   ├── autre-informatique-kturtle.txt │   ├── autre-informatique-materiel.txt │   ├── autre-informatique-prog.txt │   ├── autre-liste-francais.txt │   ├── CE-francais-verbe1erG.txt │   ├── CE-francais-verbe3eG.txt │   ├── CE-francais-verbe-ir.txt │   ├── cm-geo-communiquer.txt │   ├── cm-geo-espaces-touristiques.txt │   ├── cm-geo-espaces-urbains.txt │   ├── cm-geographie-consommer-en-france.txt │   ├── cm-geo-lieux.txt │   ├── cm-geo-mieux-habiter.txt │   ├── cm_geo_pays-UE.txt │   ├── cm-geo-se-deplacer.txt │   ├── cm-hist-age-industriel.txt │   ├── cm-hist-construction-euro.txt │   ├── cm-hist-deux-guerres-mondiales.txt │   ├── cm-hist-la-republique.txt │   ├── cm_histoirela-revolution-l-empire.txt │   ├── cm_histoire-moyen-age.txt │   ├── cm-hist-prehistoire-antiquite.txt │   ├── cm-maths-nombres.txt │   └── cm-maths-polygone.txt ├── images │   ├── preview │   │   ├── 01.png │   │   ├── 02.png │   │   ├── 03.png │   │   ├── 04.png │   │   └── 05.png │   ├── set0 │   │   ├── 001 │   │   │   ├── pendu_0.gif │   │   │   ├── pendu_1.gif │   │   │   ├── pendu_2.gif │   │   │   ├── pendu_3.gif │   │   │   ├── pendu_4.gif │   │   │   ├── pendu_5.gif │   │   │   ├── pendu_6.gif │   │   │   ├── pendu_7.gif │   │   │   └── pendu_gagne.gif │   │   └── 002 │   │   ├── pendu_0.gif │   │   ├── pendu_10.gif │   │   ├── pendu_1.gif │   │   ├── pendu_2.gif │   │   ├── pendu_3.gif │   │   ├── pendu_4.gif │   │   ├── pendu_5.gif │   │   ├── pendu_6.gif │   │   ├── pendu_7.gif │   │   ├── pendu_8.gif │   │   ├── pendu_9.gif │   │   └── pendu_gagne.gif │   ├── set1 │   │   ├── 001 │   │   │   ├── pendu_0.gif │   │   │   ├── pendu_1.gif │   │   │   ├── pendu_2.gif │   │   │   ├── pendu_3.gif │   │   │   ├── pendu_4.gif │   │   │   ├── pendu_5.gif │   │   │   ├── pendu_6.gif │   │   │   ├── pendu_7.gif │   │   │   └── pendu_gagne.gif │   │   └── 002 │   │   ├── pendu_0.gif │   │   ├── pendu_10.gif │   │   ├── pendu_1.gif │   │   ├── pendu_2.gif │   │   ├── pendu_3.gif │   │   ├── pendu_4.gif │   │   ├── pendu_5.gif │   │   ├── pendu_6.gif │   │   ├── pendu_7.gif │   │   ├── pendu_8.gif │   │   ├── pendu_9.gif │   │   └── pendu_gagne.gif │   ├── set2 │   │   ├── 001 │   │   │   ├── pendu_0.gif │   │   │   ├── pendu_1.gif │   │   │   ├── pendu_2.gif │   │   │   ├── pendu_3.gif │   │   │   ├── pendu_4.gif │   │   │   ├── pendu_5.gif │   │   │   ├── pendu_6.gif │   │   │   ├── pendu_7.gif │   │   │   └── pendu_gagne.gif │   │   └── 002 │   │   ├── pendu_0.gif │   │   ├── pendu_10.gif │   │   ├── pendu_1.gif │   │   ├── pendu_2.gif │   │   ├── pendu_3.gif │   │   ├── pendu_4.gif │   │   ├── pendu_5.gif │   │   ├── pendu_6.gif │   │   ├── pendu_7.gif │   │   ├── pendu_8.gif │   │   ├── pendu_9.gif │   │   └── pendu_gagne.gif │   ├── set3 │   │   ├── 001 │   │   │   ├── pendu_0.gif │   │   │   ├── pendu_1.gif │   │   │   ├── pendu_2.gif │   │   │   ├── pendu_3.gif │   │   │   ├── pendu_4.gif │   │   │   ├── pendu_5.gif │   │   │   ├── pendu_6.gif │   │   │   ├── pendu_7.gif │   │   │   └── pendu_gagne.gif │   │   └── 002 │   │   ├── pendu_0.gif │   │   ├── pendu_10.gif │   │   ├── pendu_1.gif │   │   ├── pendu_2.gif │   │   ├── pendu_3.gif │   │   ├── pendu_4.gif │   │   ├── pendu_5.gif │   │   ├── pendu_6.gif │   │   ├── pendu_7.gif │   │   ├── pendu_8.gif │   │   ├── pendu_9.gif │   │   └── pendu_gagne.gif │   └── set4 │   ├── 001 │   │   ├── pendu_0.gif │   │   ├── pendu_1.gif │   │   ├── pendu_2.gif │   │   ├── pendu_3.gif │   │   ├── pendu_4.gif │   │   ├── pendu_5.gif │   │   ├── pendu_6.gif │   │   ├── pendu_7.gif │   │   └── pendu_gagne.gif │   └── 002 │   ├── pendu_0.gif │   ├── pendu_10.gif │   ├── pendu_1.gif │   ├── pendu_2.gif │   ├── pendu_3.gif │   ├── pendu_4.gif │   ├── pendu_5.gif │   ├── pendu_6.gif │   ├── pendu_7.gif │   ├── pendu_8.gif │   ├── pendu_9.gif │   └── pendu_gagne.gif ├── pendu-peda-gtk.css ├── pendu-peda-gtk.py └── pendu-peda.png 26 directories, 143 files ===== Bugs ===== Pour faire remonter des bugs ou tout comportement bizarre du logiciel, utiliser le git: [[https://github.com/CyrilleBiot/pendu-peda-gtk/issues|Remontée de bugs ]] ===== Licence ===== [[https://github.com/CyrilleBiot/pendu-peda-gtk/blob/master/LICENSE| CyrilleBiot/pendu-peda-gtk is licensed under the GNU General Public License v3.0]]