Re: example python gtk orca



Orca's "where am I?" command is designed to give detailed information
about an object, including the object's description. Were Orca to
always provide the description without it being asked for, many users
would complain Orca was being "too chatty."

Take care.
--joanie

On Mon, Nov 7, 2011 at 05:59, Esteban Arias <earias plan ceibal edu uy> wrote:
> Hi,
> I have tested this example, with Orca Ubuntu 10.04 but didnt said
> decription...
> Have you got any documentation or idea about this?
>
> #!/usr/bin/env python
>
> import gtk
> import atk
>
> win = gtk.Window()
> win.connect('destroy', lambda win: gtk.main_quit())
>
> button = gtk.Button('Hola')
> button.set_flags(gtk.CAN_FOCUS)
> button.connect('pressed', lambda button: gtk.main_quit())
> atk_button = button.get_accessible()
> atk_button.set_description('la descripcion')
> atk_button.set_name('el nombre')
> atk_button.set_role(atk.ROLE_PUSH_BUTTON)
>
> box = gtk.HBox()
> box.pack_start(button)
>
> win.add(box)
> win.show_all()
>
> gtk.main()
>
>
> _______________________________________________
> gnome-accessibility-list mailing list
> gnome-accessibility-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
>
>


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