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()
Since the
npyscreen
uses the modulecurses
python, you could search for accessibility and how it works in other sources...– fernandosavio
The site was in maintenance when I wrote the comment Willian had not yet answered the question. :|
– fernandosavio
Grateful fernandosavio for the help!
– Éder Garcia