[Tkinter-discuss] How to handle any Windows message (eg. WM_GETOBJECT)?

2019-12-10 Thread Aivar Annamaa
Hi! It looks like accessibility support in Tk won't happen (https://core.tcl-lang.org/tk/tktview/deb6cddecf55c6921281f8f855b6b366aed6467e). I'm wondering is it somehow possible to bolt on some accessibility support at least on Windows. It looks like the starting point is that the app should

Re: [Tkinter-discuss] How to handle any Windows message (eg. WM_GETOBJECT)?

2019-12-10 Thread Michael Lange
Hi, On Tue, 10 Dec 2019 12:49:27 +0200 Aivar Annamaa wrote: > Hi! > > It looks like accessibility support in Tk won't happen > (https://core.tcl-lang.org/tk/tktview/deb6cddecf55c6921281f8f855b6b366aed6467e). > I'm wondering is it somehow possible to bolt on some accessibility > support at least

Re: [Tkinter-discuss] How to handle any Windows message (eg. WM_GETOBJECT)?

2019-12-10 Thread Aivar Annamaa
Michael, thanks for the idea! Unfortunately this does not work -- the callback is never called, even if the app is sent WM_GETOBJECT messages. But I found another promising approach -- swapping Tk's message handler with my own handler: import tkinter as tk import win32gui import wi