[program-l] Re: wx python grid (was:Re: Re: wxPython documentation and samples)

  • From: Andre Polykanine <andre@xxxxxxxx>
  • To: Ben Humphreys <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 16 Nov 2018 10:33:21 +0200

Hello Ben,
It's  not  best practice to "say" something through the app, actually.
If  a control is accessible, your screen reader should dig into it and
grab  needed  info. I.e., with what you're doing it will be impossible
to  control  the grid from Braille display alone, for example, because
you override screen reader default behavior.
In  some  circumstances  it  is  needed, but only on a per-application, not
per-framework basis.


-- 
With best regards from Ukraine,
Andre
Skype: menelion_elensule
Twitter (English only): @AndrePolykanine


------------ Original message ------------
From: Ben Humphreys <brhbrh@xxxxxxxxxxxxx>
To: program-l@xxxxxxxxxxxxx
Date created: , 12:31:00 AM
Subject: [program-l] wx python grid (was:Re: Re: wxPython documentation  and 
samples)


      Hi Taksan,

Since wx python is otherwise accessible, I found 
a hack for the grid, as follows:

# After creating your grid
self.grid.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.onSelect)

def onSelect(self, event):
                 row = event.GetRow()
                 col = event.GetCol()
                 value = self.grid.GetCellValue(row, col)
                 if value is not None:
                         say(value)

And the say comes from the UniversalSpeech library.

I've been meaning to submit this to the wx python 
developers, since all the other controls seem to 
be pretty accessible, this would seem to be an 
easy fix, but perhaps I am missing something.

All I know is it has something to do with 
iAccessible2.  I wonder if someone here can 
suggest better language than this when requesting the fix?

Ben


At 08:37 AM 11/14/2018, you wrote:

Hi... my test environment is windows7+nvda+wxpython 4.0.3 and the list
control is read fine by NVDA.   But sadly as you said the grid control
just fails completely.

I don't want to sound rude, but, this is one of the reason a friend
and I are actually using cef python for making our desktop Apps.
WxPython (and any other desktop UI library) is ok but all efforts and
updates nowadays in UI libraries are more focused in web-based desktop
UI. And a plus is that we can re-use the knowledge we already have
building web UI in our desktop apps.

So, returning to the grid situation... I have no idea how to fix it
other than first testing the C++ original version (just to be sure if
the problem is python or the component does not even work in the
original C++ base version)... and of course asking in the wxpython
list.

Sad situation indeed.

If you really want a pure-desktop UI... You may want to try PyQT, but
be careful, there are two versions, one is GPL al but stable and
another is more free but beta, pick the one that best helps you.

On 11/14/18, Andy Borka <sonfire11@xxxxxxxxx> wrote:
I was looking at the demos for 4.0.0B1 and figured out that some of the
controls such as ListCtrl and Grid aren't usable with a screen reader. I
use Orca on Fedora 29 for the most part, but my understanding is that it
makes no difference what screen reader you use because the entire
library of UI controls should be accessible. Right now, I run wxpython
4.0.1.


On 11/14/18 7:11 AM, Taksan wrote:
Andy: wxPython examples are... a little hidden... just download the
whole repository and run demo.py and you will get them all. I just ran
that yesterday and they are very well documented and explained. Their
demos are very well documented and explained. Here is the link

https://github.com/wxWidgets/Phoenix/tree/master/demo

Sadly, their webpage is confusing and sometimes tells you to just go
read the C code or any other old stuff. I wish they just say upfront
in their website to just go straight to demo.py

Would be great if you show us what you build with it.
Have fun with wxPython,
Taksan

On 11/14/18, Jaffar Sidek <jaffar.sidek10@xxxxxxxxx> wrote:
Hi Andy.  I hope this will be of help to you.  Cheers!

https://www.dropbox.com/sh/wqbmg6kziiozrcc/AAAyeRZwKZLo2PpctiSy5KJZa?dl=1

On 14/11/2018 10:12 AM, Andy Borka wrote:
Hi,


Does anyone know where to get good documentation on wxPython? It
appears that the current documentation is not very clear in most
areas, unless I am looking at the wrong thing. Most tutorials and
blogs use old outdated code and some of it, especially for wx.ListCtrl
fails to build. Any pointers are appreciated.


** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: