# Aide projet ISN \[python\]

**URL:** <https://www.debian-fr.org/t/aide-projet-isn-python/62186>\
**Category:** Programmation\
**Created:** [Février 21, 2016, 8:17 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186 "2016-02-21T20:17:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oxo96](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oxo96](https://www.debian-fr.org/u/oxo96)\
**Post date:** [Février 21, 2016, 8:17 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/1 "2016-02-21T20:17:07Z")

</div>

Bonsoir,  
je suis actuellement élève en classe de Terminal S en option ISN et j’ai besoin d’aide pour mon projet. J’essaye de programmer un jeu avec des notes de musique. Ce jeu est inspiré à guitar hero pour ce qui connaissent. Dans mon programme des boules de couleurs bleues defilent de haut en bas grace aux fonctions deplacement1 et deplacement2. J’aimerai savoir si vous connaissez un moyen pour rappeler plusieurs fois une même fonction toute les x secondes. Ici j’aimerai rappeler 3 fois ma fonction deplacement1 avec un intervalle de 4 secondes à chaque appel.  
Il s’agit du language python  
Merci d’avance  
Voici mon code :

[code]from graphics.fenetres import \*  
from graphics.couleurs import \*  
f= Fenetre()  
zg=f.graphique(largeur = 1300,hauteur = 950,couleur =noir)  
a=Point(340,950)  
b=Point(340,0)  
zg.draw\_line(a,b,bleu)  
#colonne bleu  
c=Point(510,950)  
d=Point(510,0)  
zg.draw\_line(c,d,blanc)  
#colonne blanche  
e=Point(680,950)  
g=Point(680,0)  
zg.draw\_line(e,g,rouge)  
#colonne rouge  
h=Point(850,950)  
i=Point(850,0)  
zg.draw\_line(h,i,vert)  
#colonne verte  
j=Point(1020,950)  
k=Point(1020,0)  
zg.draw\_line(j,k,jaune)  
#colonne verte  
A=Point(340,720)  
zg.draw\_fill\_circle(A,20,bleu)  
#cercle bleu  
B=Point(510,720)  
zg.draw\_fill\_circle(B,20,blanc)  
#cercle blanc  
C=Point(680,720)  
zg.draw\_fill\_circle(C,20,rouge)  
#cercle rouge  
D=Point(850,720)  
zg.draw\_fill\_circle(D,20,vert)  
#cercle vert  
E=Point(1020,720)  
zg.draw\_fill\_circle(E,20,jaune)  
#cercle jaune  
S=Point(550,120)#Point "Super"  
G=Point(840,120)#Point "Guitar"  
w=Point(140,260)#Point "Magenta"  
zg.aff\_texte(“Super”,S,taille=70,couleur=‘red’,souligne = ‘N’,gras=‘Y’,italique=‘N’)  
zg.aff\_texte(“Guitar”,G,taille=70,couleur=‘blue’,souligne = ‘N’,gras=‘Y’,italique=‘N’)  
zg.aff\_texte(“Score”,w,taille=70,couleur=‘magenta’,souligne = ‘N’,gras=‘Y’,italique=‘N’)

def deplacement1() :  
global boules  
global centres\_boules  
for b in boules:  
zg.efface(b)  
for p in centres\_boules:  
p.y +=40  
boules = [zg.draw\_fill\_circle(c,20,cyan) for c in centres\_boules]  
zg.after(280,deplacement1)

centres\_boules=[Point(340,200+i\*100) for i in range(3)]  
boules = [zg.draw\_fill\_circle(c,20,cyan) for c in centres\_boules]  
zg.after(280,deplacement1)

# deplacement verticale des boules sur la 1 ere colone

def deplacement2() :  
global boule2  
global centre\_boule2  
for q in boule2:  
zg.efface(q)  
for l in centre\_boule2:  
l.y +=40  
boule2= [zg.draw\_fill\_circle(z,20,cyan) for z in centre\_boule2]  
zg.after(250,deplacement2)

centre\_boule2=[Point(510,200+i\*40) for i in range(6)]  
boule2= [zg.draw\_fill\_circle(z,30,cyan) for z in centre\_boule2]  
zg.after(180,deplacement2)

# deplacement verticale des boules sur la 2eme colone[/code]

---

<div class="post-metadata">

**Author:** ![Zbf](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@Zbf](https://www.debian-fr.org/u/Zbf)\
**Post date:** [Février 21, 2016, 8:17 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/2 "2016-02-21T20:17:08Z")

</div>

Salut,

Tu peux,

- préciser qu’il s’agit d’un programme python
- utiliser la balise `ton code` pour éditer et mettre en forme ton message précédent

---

<div class="post-metadata">

**Author:** ![fran.b](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@fran.b](https://www.debian-fr.org/u/fran.b)\
**Post date:** [Février 21, 2016, 8:29 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/3 "2016-02-21T20:29:27Z")

</div>

Va voir la fonction  
[tutorialspoint.com/python/time\_sleep.htm](http://www.tutorialspoint.com/python/time_sleep.htm)

---

<div class="post-metadata">

**Author:** ![sasasamy](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sasasamy](https://www.debian-fr.org/u/sasasamy)\
**Post date:** [Avril 21, 2016, 8:32 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/4 "2016-04-21T20:32:03Z")

</div>

Bonjour j’aurais besoins d’aide pour mon projet d’isn , je paye si il le faut mais Ç très tres urgents

---

<div class="post-metadata">

**Author:** ![anon96191775](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@anon96191775](https://www.debian-fr.org/u/anon96191775)\
**Post date:** [Avril 22, 2016, 12:33 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/5 "2016-04-22T12:33:27Z")

</div>

Merci d’ouvrir un nouveau fil pour ça 😉

---

<div class="post-metadata">

**Author:** ![sasasamy](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@sasasamy](https://www.debian-fr.org/u/sasasamy)\
**Post date:** [Avril 22, 2016, 12:52 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/6 "2016-04-22T12:52:09Z")

</div>

Oue mais Hahahahaha franchement y a pas de rep et moi je suis dans la merde

---

<div class="post-metadata">

**Author:** ![TheJeje20](https://www.debian-fr.org/user_avatar/www.debian-fr.org/thejeje20/32/3976_2.png) [@TheJeje20](https://www.debian-fr.org/u/TheJeje20)\
**Post date:** [Avril 22, 2016, 1:41 UTC](https://www.debian-fr.org/t/aide-projet-isn-python/62186/7 "2016-04-22T13:41:41Z")

</div>

Ouvre un nouveau fil et commence par expliquer de quoi il en retourne.  
J’irai voir si je peux t’aider ou pas. 🙂

Parce que tout ce que je sais pour l’instant, c’est que ton projet d’ISN est urgent… ^^
