npyscreen with accessibility

Asked

Viewed 92 times

1

I am helping a colleague who is blind to programming in Python!

It uses the notepad and a screen reader called nvda (python).

We are having difficulty with the registration form because the nvda is reading (with the voice synthesizer) only the title of the form: "Retro Agenda".

Does anyone know any way to make all the texts of npyscreen be read by nvda?

Any alternative solution will be very welcome.

Thank you for your attention, Hug!

#!/usr/bin/env python
# encoding: utf-8
import npyscreen

class TestApp(npyscreen.NPSApp):

    def main(self):
        F  = npyscreen.Form(name = "Agenda Retrô")
        nome = F.add(npyscreen.TitleText, name = "Nome:", )
        sobrenome = F.add(npyscreen.TitleText, name = "Sobrenome:", )
        residencial = F.add(npyscreen.TitleText, name = "Residencial:", )
        celular = F.add(npyscreen.TitleText, name = "Celular:", )
        email = F.add(npyscreen.TitleText, name = "Email:", )
        endereco = F.add(npyscreen.TitleText, name = "Endereco:", )
        complemento = F.add(npyscreen.TitleText, name = "Complemento:", )
        estado = F.add(npyscreen.TitleText, name = "Estado:", )
        municipio = F.add(npyscreen.TitleText, name = "Municipio:", )        
        nota = F.add(npyscreen.MultiLineEdit, 
               value = """Escreva aqui...\n""", 
               max_height=5, rely=12)
        F.edit()

        print(nome.value)
        print(sobrenome.value)
        print(residencial.value)
        print(celular.value)
        print(email.value)
        print(endereco.value)
        print(complemento.value)
        print(estado.value)
        print(municipio.value)
        print(nota.value)

if __name__ == "__main__":
    App = TestApp()
    App.run()
  • 1

    Since the npyscreen uses the module curses python, you could search for accessibility and how it works in other sources...

  • The site was in maintenance when I wrote the comment Willian had not yet answered the question. :|

  • Grateful fernandosavio for the help!

1 answer

3


Actually the npyscreen lib has no accessibility options, as well as 90% of the python graphic libs.

Unica lib of graphic libraries accessible to the visually impaired that I know is wxpython.

  • 1

    Hello Willian, I will test with wxpython. Hug!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.