CONNEXION
  • RetourJeux
    • Tests
    • Soluces
    • Previews
    • Sorties
    • Hit Parade
    • Les + attendus
    • Tous les Jeux
  • RetourActu
    • Culture Geek
    • Astuces
    • Réalité Virtuelle
    • Rétrogaming
    • Toutes les actus
  • RetourHigh-Tech
    • Actus JVTECH
    • Bons plans
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTECH
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch
    • Xbox Series
    • Overwatch 2
    • FUT 23
    • League of Legends
    • Genshin Impact
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • PS4
  • One
  • Switch
  • Wii U
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Etoile Abonnement RSS
Hostages
Forum
  • Accueil
  • Actus
  • Tests
  • Vidéos
  • Images
  • Soluces
  • Forum

Sujet : C'est quoi ce jeu

DébutPage précedente
1
Page suivantePage suivante
Dequapitor Dequapitor
MP
Niveau 6
15 octobre 2008 à 14:16:20

Hein ??

Sufart Sufart
MP
Niveau 10
20 novembre 2008 à 15:23:53

Ta soeur ?

pro_Bobox360 pro_Bobox360
MP
Niveau 4
17 février 2009 à 17:48:35

cos maires :noel:

bossn-23 bossn-23
MP
Niveau 13
01 mai 2011 à 20:41:38
  1. !/usr/bin/python
  2. -*- coding: utf-8 -*-

from Tkinter import *
from math import sin,pi
import cwiid
import time

class Application(object):
def __init__(self):

self.fen = Tk()
self.fen.title("Wiimote : accelerometre ")
self.fen.geometry("300x300")

Label(self.fen,text='valeur du temps').pack(side=RIGHT)
self.entree2=Entry(self.fen,width=14)
self.entree2.pack(side=RIGHT)

b2=Button(self.fen,text='Nouvelle courbe : appuyez sur 1+2 ',command=self.traceCourbe)
b2.pack(side=RIGHT,padx=3,pady=3)

b3=Button(self.fen,text='Detection wiimote : appuez sur 1+ 2',command=self.reconnaissance).pack()

self.fen.mainloop()

def reconnaissance(self):

led = 0
rpt_mode = 0
rumble = 0
mesg = False

if len(sys.argv) > 1:

wiimote = cwiid.Wiimote(sys.argv[1])
else:
wiimote = cwiid.Wiimote()

rpt_mode = cwiid.RPT_ACC
wiimote.rpt_mode = rpt_mode
lab=Label(self.fen,text='Wiimote detecté').pack()

def traceCourbe(self):

self.can=Canvas(self.fen,width=500,height=500)

self.can.grid(row=1,column=1,columnspan=1,pady=1,p
adx=1)

x_acc = [0]
y_acc = [0]
z_acc = [0]
t = [0]
curve=[]

led = 0
rpt_mode = 0
rumble = 0
mesg = False

if len(sys.argv) > 1:

wiimote = cwiid.Wiimote(sys.argv[1])
else:
wiimote = cwiid.Wiimote()

rpt_mode = cwiid.RPT_ACC
wiimote.rpt_mode = rpt_mode

zorg = None
self.v1=self.entree2.get()
zorg=float(self.v1)

tic = time.time()
while not t[-1] > zorg:
t.append(time.time() - tic)
x_acc.append(wiimote.state["acc"][cwiid.X])
y_acc.append(wiimote.state["acc"][cwiid.Y])
z_acc.append(wiimote.state["acc"][cwiid.Z])

#~ print "t =", t[-1], "; ax =", x_acc[-1], \
#~ "; ay =", y_acc[-1], \
#~ "; az =", y_acc[-1]

"trace d'une grpoahique "
curve=[]
curve1=[]
curve2=[]
curve.append((t,x_acc))

self.can.create_line(curve,width=1,fill='yellow',s
mooth=1)

x=[0]
y=[0]
x1=[0]
y1=[0]

x1=0
while x1<100:
y1=x1*x1
x1=x1+1

curve2.append((x1,y1))
self.can.create_line(curve2,width=1,fill='red')

if __name__== '__main__':

fen = Application()

bossn-23 bossn-23
MP
Niveau 13
01 mai 2011 à 20:41:59

oups je me suis encore trompé de forum

blablatomtom blablatomtom
MP
Niveau 9
21 mai 2015 à 01:15:04

Je bande http://ohyeaaaah.com (nouvelles videos)

DébutPage précedente
1
Page suivantePage suivante
Répondre
Prévisu
?
Victime de harcèlement en ligne : comment réagir ?
Infos 0 connecté(s)

Gestion du forum

Modérateurs : Evilash08, Vortex646, Tomy-Fett, Leirok, ]Faustine[, Latios[JV], Remysangfamy
Contacter les modérateurs - Règles du forum

Sujets à ne pas manquer

  • Aucun sujet à ne pas manquer
La vidéo du moment