Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, RR4CLB wrote: > But the tab went from button to button but the display of the text > for that button was on another screen. There should be a text > label for buttons so when I tab it also says its text label. I am > not sure the example I had was written that way. It jus

Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, RR4CLB wrote: > > I noticed just only one graphic symbol present. I labeled it and > the ladle stayed the same for both, that means they are the same > color/image. So when tabbing back and forth the first screen said > button 1 or button 2 but the screen reader only rea

Re: [pygame] video error

2007-09-27 Thread Jason Massey
Is the entirety of your code in your __init__ class? I'm not sure if the spacing got mangled in the e-mail but the way it came across when I cut and pasted the class into my editor is that your while loop is in the main Class, not in the __init__ function. Since the class gets created before the

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus, It is like what all links/images especially have and that is an alt field. It is a text field setup on web pages to also have text in a picture to describe the picture for sightless people and screen readers. So when the tab goes to that button or link it is also entering a tex

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus, "needs accessibility awareness through the MSAA library (or ATK/AT-SPI" I think that the MSAA library is exactly what we are talking about. I have not tried the new one yet, but I suspect that this is the issue. I can try and teach the screen reader to read a screen that is produce

Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, RR4CLB wrote: > > So I guess that both the buttons and text have to be in the same > frame. The only thing to do is look up the format of a button > inside the win32 and see what they did to accomplish that. I > believe those are ADA, 504 kind of things for standards, >

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus, Still the same issue. I think the problem when labeling the button is not so much the color, but the image. For when labeling the button it is copying that image and saving a text label along with a copy of that image. Each image has a number value and probably that is what is being

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus, The issue is still there for at least text labeling. The cursor tabbing does not say anything because there is nothing there for it to scan and that may be because of no MSAA support. The text labeler for the mouse and icons still works but for only one button. I am going to ha

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Hi Marcus, I had my son come over to read the screen and when moving the mouse over the icon it did change color from red to white, but my screen reader mouse control was reading the other screen yet moving over that location. I also noticed that when trying to focus it kept saying to me "T

[pygame] Code: Center of Triangle

2007-09-27 Thread Kamilche
Worked this up today for myself, thought I'd post it in case someone else found it useful. import pygame def CenterOfTriangle(A, B, C): return (A[0] + B[0] + C[0])/3.0, (A[1] + B[1] + C[1])/3.0, (A[2] + B[2] + C[2])/3.0 def CalculateDistance(a, b): x, y, z = b[0] - a[0], b[1] - a[1]

Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, RR4CLB wrote: > Hi Marcus, > > I had my son come over to read the screen and when moving the > mouse over the icon it did change color from red to white, but my > screen reader mouse control was reading the other screen yet moving > over that location. I also noticed tha

[pygame] noname

2007-09-27 Thread Ian Mallett
On many people's posts, they seem to be attaching a small file called "noname". It reads as follows: -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG/AJAo/JpszXavhwRAg3EAJ9PZJCU4LMFQyx0y0V5c92hBrPP/QCfdU7c vqzcEK8siubKBKFGaMdfKIc= =Fti0 -END PGP SIGNATURE- I'm not

Re: [pygame] noname

2007-09-27 Thread Lamonte Harris
Probably there using weird signatures or something. On 9/27/07, Ian Mallett <[EMAIL PROTECTED]> wrote: > > On many people's posts, they seem to be attaching a small file called > "noname". It reads as follows: > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.7 (FreeBSD) > > iD8DBQFG/AJAo/J

GnuPG signatures (was: Re: [pygame] noname)

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, Lamonte Harris wrote: > Probably there using weird signatures or something. No, it is a so called PGP (or in that case GnuGP) signature, which lets you verify, that a) the mail comes from the originator and b) was not modified on its way to you. See http://www.gnupg.org/ an

Re: [pygame] noname

2007-09-27 Thread Ethan Glasser-Camp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian Mallett wrote: > On many people's posts, they seem to be attaching a small file called > "noname". It reads as follows: > > I'm not sure why this is, though I'm guessing your email browser does > it for some reason. I'm using gmail, and it appea

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus, The menu comment is when I left click on it. They may be because the button does nothing. I read the documentation for programming a screen. It monitors light-bars, any change in colors. If a part of a screen changes it can read that area by setting a window for only that are

Re: [pygame] Tutorial... GUI

2007-09-27 Thread James Paige
On Thu, Sep 27, 2007 at 09:19:28PM +0200, Marcus von Appen wrote: > On, Thu Sep 27, 2007, RR4CLB wrote: > > > Hi Marcus, > > > > I had my son come over to read the screen and when moving the > > mouse over the icon it did change color from red to white, but my > > screen reader mouse control

Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, RR4CLB wrote: > > > Marcus, > > The menu comment is when I left click on it. They may be because > the button does nothing. > > I read the documentation for programming a screen. It monitors > light-bars, any change in colors. If a part of a screen changes it can

Re: [pygame] Tutorial... GUI

2007-09-27 Thread Marcus von Appen
On, Thu Sep 27, 2007, James Paige wrote: > On Thu, Sep 27, 2007 at 09:19:28PM +0200, Marcus von Appen wrote: > > On, Thu Sep 27, 2007, RR4CLB wrote: > > > > > Hi Marcus, > > > > > > I had my son come over to read the screen and when moving the > > > mouse over the icon it did change color fr

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Hi James, My reader is Windoweyes. I do have one for earlier versions of windows which is written by JAWS. My version is for XP users. This version will run on any previous version of windows, but not SP2 and later. I would have to pay over $400 to get that upgrade. The cost for new i

Re: [pygame] Tutorial... GUI

2007-09-27 Thread RR4CLB
Marcus "This makes both types unusable for the description of graphical elements" I am a little confused, did you already have it set up for ATK/AT-SPI? Or it works with them, but not yet for windows? I can read one button that is labeled. The graphic symbols used for buttons either a

Re: [pygame] Code: Center of Triangle

2007-09-27 Thread DR0ID
Hi > > def CalculateDistance(a, b): > x, y, z = b[0] - a[0], b[1] - a[1], b[2] - a[2] > dist = x*x + y*y + z*z > return dist * dist > no offense, but "x*x + y*y + z*z" is already the distance squared, so no need for "return dist*dist". (or did you do this on purpose?). ~DR0ID

Re: [pygame] Code: Center of Triangle

2007-09-27 Thread Greg Ewing
Patrick Mullen wrote: Yeah, shouldn't it be math.sqrt(dist)? Although you might want to just return the distance^2 so the user can decide whether a sqrt is necessary or not. Yes -- often you don't need the sqrt, e.g. if you just want to compare two distances. Either way, the value you're cal

Re: [pygame] Code: Center of Triangle

2007-09-27 Thread Patrick Mullen
Yeah, shouldn't it be math.sqrt(dist)? Although you might want to just return the distance^2 so the user can decide whether a sqrt is necessary or not.

Re: [pygame] Code: Center of Triangle

2007-09-27 Thread Kamilche
DR0ID wrote: Hi def CalculateDistance(a, b): x, y, z = b[0] - a[0], b[1] - a[1], b[2] - a[2] dist = x*x + y*y + z*z return dist * dist no offense, but "x*x + y*y + z*z" is already the distance squared, so no need for "return dist*dist". (or did you do this on purpose?). ~DR0ID