|
AT-SPI , , , / . AT-SPI GNU/Linux ISO/IEC 13066. , AT-SPI , pyatspi, AT-SPI python. pyatspi . , , , (, Accerciser), (, Orca, ). GNU/Linux pyatspi. , Ubuntu pyatspi root: apt install python-pyatspi AT-SPI, , () , , . (assistive technology) , (accessibility three). AT-SPI () AT-SPI, , API pyatspi. , pyatspi: import pyatspi : desktop = pyatspi.Registry.getDesktop(0) for application in desktop: print(application.name) , : a = desktop[0] print(a.name) for o in a: print(o) ( , ): gucharmap [frame | Character Map] , gucharmap, (), Character Map. , AT-SPI, (accessibility object). , : for o in a: print(o.role, o.name) :
, () . : frame = a[0] for o in frame: print(o) : [panel | ] [menu bar | ] , . : panel = frame[0] for o in panel: print(o) : [status bar | U+10000 LINEAR B SYLLABLE B008 A] [text | test] [push button | Copy] [label | Text to copy:] [split pane | ] [filler | Font] , , . , , : t = panel[1] l = panel[3] print(t.role) print(l.role) t_text = t.queryText() l_text = l.queryText() .: , : , AT-SPI, , ... AT-SPI , . ( , , ..) ( , ..). , (), : : , , . : . , |
|||
|