Re: [orca-list] why orca does not report labels for widgets in a pygtk based applications?



On 18/08/2008, Jon <j orcauser googlemail com> wrote:
Hi Krishnakant,

It sounds like you have not set the accessibility relations between the
labels and textboxes.
i.e. for each label edit the "label_for" property, and put the name of
the textbox, and for each textbox edit the "labeled_by" property to the
name of the label.
is it label_for(widget) or label_for = widget?
what is the exact syntax?

I think the relation specifically needs to be two way before the
accessibility kicks in.

seams pritty logical but can't get the syntax.
it is giving me no attribute label_for

Good luck.
-Jon

happy hacking.
KK> On Sun 17/08/2008 at 16:59:36, Krishnakant Mane wrote:
hello,
I am building a gtk based application using python.
this implies that I am using pygtk in my application for the GUI.
the strange thing I found with orcfa is that when the window is on the
screen orca does not report the lables of the textbox or combo widgets
or any widget which has a lable to its left.
for example when I tab through name, address, telephone ... orca does
not read the respective lables and only says "text, text text ".  Only
when I use the flat review then I get the lable captions?
I am sure since all other gtk apps are accessible in this context,
that is to say, in all other gtk applications orca announces the
lable, then I must e missing some thing.  I might not be setting some
attributes which is core for this kind of accessibility.
For example in java, there is a "setLabelFor(widget)" method.  is
there any thing similar in pygtk where I can associate a lable with a
widget?
happy hacking.
Krishnakant.
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca




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