[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Tutorial... GUI



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 saved. So, I am not sure if buttons are all the same or can there images be changed by choice.

    Probably the only way to fix the problem, besides MSAA issues. At least the mouse sees the saved image and gives a text label for it when the mouse goes over the button. I am going to try 2 other things and get back with you.

    Thanks, Bruce


        Bruce


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 read the same
> label. Also when tabbing I got no text, which means no text label
> in the button itself.

Which label did the screen reader read? Does it receive the button
information or only the title text of the pygame window?

I think, the screen reader cannot receive any information from the AT
software, because pygame (and SDL in general) simply does not support
such accessibility features.

However, I attached a slightly modified version of the button example,
in which the first button now receives a red background colour, the
second one a green background colour. If you could give it a try, it'd
be helpful for me to figure out on what I have to focus for the
accessibility systems.

> 
>     So, I guess there has to be a different color or image I would
>  have to use for each button. Also, text label for the button, is
>  that in this or forced to be in first screen window? For when it
>  said which was focused I had to go to the other screen by alt
>  tab. Control tab went back to the first button but the text label
>  I placed on it with the screen reader still read Button 2, because
>  of button color/image.

The visual representation of the buttons displays a textual label on
them as done in the code. I simply added a print function (which goes to
the other console window) for the focus so you can distinguish between
both buttons in case the screen reader cannot deal with them correctly.

I hope, the screen reader can recognize the changed example correctly
now. If not, we have to think of another solution as it is likely that
the screen reader won't be able to deal with any content displayed on
the pygame window then. This would mean that each object to be shown
needs accessibility awareness through the MSAA library (or ATK/AT-SPI
for unix).

Regards
Marcus