On Fri, Jul 22, 2011 at 04:04:54PM +0200, M@T wrote: > Ciao a tutti ho un problema con un programmino che dovrebbe crearmi > dei grafici delle accelerazioni del wiimote convertite in array > numpy. > > Se volete qui [0] trovate i sorgenti (ma per provarlo è necessario > il wiimote). > > L'errore che mi viene restituito sembra dovuto al fatto che a > Tkinter non piace ciò che gli viene "passato" (penso... non sono > molto esperto). > > Exception in Tkinter callback > Traceback (most recent call last): > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in __call__ > return self.func(*args) > File "dynamic.py", line 212, in displaydata > pl.title('Accelerazioni') > File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line > 769, in title > l = gca().set_title(s, *args, **kwargs) > File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line > 582, in gca > ax = gcf().gca(**kwargs) > File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line > 276, in gcf > return figure() > File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line > 254, in figure > **kwargs) > File > "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", > line 91, in new_figure_manager > canvas = FigureCanvasTkAgg(figure, master=window) > File > "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", > line 159, in __init__ > self._tkcanvas.create_image(w/2, h/2, image=self._tkphoto) > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2201, in create_image > return self._create('image', args, kw) > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2192, in _create > *(args + self._options(cnf, kw)))) > TclError: bad screen distance "320.0"
Non è che si aspetta un intero come argomento? sandro *:-) _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python