example python gtk orca
- From: Esteban Arias <earias plan ceibal edu uy>
- To: Gnome Accessibility List <gnome-accessibility-list gnome org>
- Subject: example python gtk orca
- Date: Mon, 7 Nov 2011 08:59:54 -0200
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]