Fwd: Re: Ti giro il file che ha chiesto di provare Pere Negre

3 views
Skip to first unread message

al...@paranoici.org

unread,
Sep 18, 2012, 4:55:37 AM9/18/12
to python-w...@googlegroups.com
My collegue I say that have changed a little the code and make some log
that you can see in attachment.

I say that seems that the code pass from the correct tracks and
say that seems that this is the not working part of code:

qt.QPen(QtCore.Qt.red, 1, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap,
QtCore.Qt.RoundJoin),
qt.QBrush(QtCore.Qt.red))

I have not idea about this topic

Please try to see the attachments in order to see if they can give you
more information
about the problem.


-------- Original Message --------
Subject: Re: Ti giro il file che ha chiesto di provare Pere Negre
Date: 18.09.2012 07:07
From: ProgettoRadis <proget...@gmail.com>
To: al...@paranoici.org

no, purtroppo, non va ancora.
ho messo dei display, allego gli stessi ed il log che ne consegue.
Ho imparato a fare la blind calibration :))
Mi pare ad occhio che sia corretto.

Che ne dici?

a me pare non stia funzionando:

qt.QPen(QtCore.Qt.red, 1, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap,
QtCore.Qt.RoundJoin),
qt.QBrush(QtCore.Qt.red))




Il 18/09/2012 00:09, al...@paranoici.org ha scritto:
> Dice più o meno
> Ok. Prova questa patch. Ho limitato la frequenza di aggiornamento del
> puntatore nella
> schermata di calibrazione.
>
> -------- Original Message --------
> Subject: Re: New version using linuxWiimoteLib
> Date: 17.09.2012 23:56
> From: Pere Negre <pere....@gmail.com>
> To: python-w...@googlegroups.com
> Reply-To: python-w...@googlegroups.com
>
> Ok. Try this patch. I've limited the refresh rate of the pointer in
> calibration screen.
>
display_calibration.txt
log_calibration.txt

Pere Negre

unread,
Sep 18, 2012, 6:12:19 PM9/18/12
to python-w...@googlegroups.com

Hi Pietro. I've had a very busy day at work.

Tomorrow I'll try to look at this problem.

al...@paranoici.org

unread,
Sep 19, 2012, 8:33:42 AM9/19/12
to python-w...@googlegroups.com
My collegue Oscar say that in your computer also the infrared point in
the centtal area is not
visible. Seems that the problem is that the screen is not updated.
Oscar in order to fix the problem has added the self.scene.update().
Can be that the missing circle filling is caused by the same cause.

script: calibration.py

def setCenter(self,x,y):
if self.elipse:
self.scene.removeItem(self.elipse)
self.scene.removeItem(self.circle)

self.elipse = self.scene.addEllipse(x-self.radius/2,
y-self.radius/2, self.radius, self.radius,
qt.QPen(QtCore.Qt.red, 1, QtCore.Qt.SolidLine,
QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin),
qt.QBrush(QtCore.Qt.red))
self.circle = self.scene.addEllipse(x-self.radius/2,
y-self.radius/2, self.radius, self.radius,
qt.QPen(QtCore.Qt.black, 1,
QtCore.Qt.SolidLine, QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
self.elipse.setVisible(False)
self.circle.setVisible(True)
self.scene.update() <------------ insert by Oscar

Pietro Pilolli

al...@paranoici.org

unread,
Sep 19, 2012, 2:45:56 PM9/19/12
to python-w...@googlegroups.com
Oscar has added some update in some critical points.
With this patches is able to use python-whiteboard on your computer
with wiimote plus also

The file is attached
calibration.py

Pere Negre

unread,
Sep 19, 2012, 3:44:09 PM9/19/12
to python-w...@googlegroups.com
Good job!!!

Changes are commited and pushed to git repository.

I've build a new .deb and uploaded it. https://github.com/pnegre/python-whiteboard/downloads

--
Pere
Reply all
Reply to author
Forward
0 new messages