E. Paine added the comment:
Sorry for the spam...
OK, making the corresponding ctypes calls to the commands reported in
issue31244 succeeds in the Python REPL, but the Tk text's behaviour doesn't
change. In IDLE, the ctypes calls fail.
ctypes.windll.Kernel32.SetConsoleCP(1251)
ctypes.windll
E. Paine added the comment:
Actually, doing a bit more research, issue31244 came up (and more specifically
msg300716). It was concluded there that the issue should not be fixed, though
there was some C/C++ code reported in the last message that the OP claims could
potentially solve the issue
E. Paine added the comment:
I have reproduced the behaviour described in Wish (from the Tk head). Having
tried other applications, I can also confirm that it is normal for inputs to be
treated in this manner (e.g. using Ctrl-C on my Latin keyboard with the input
device set to Russian copies
Anton Bryl added the comment:
> Also, how do you make your keyboard a Cyrillic keyboard.
On Windows, just install a keyboard layout for e.g. Russian. As soon as you
switch to it, all Ctrl+Letter combinations stop working. Switch back to EN, and
everything's working again.
As the code is wri
Anton Bryl added the comment:
Tried the tkinter example.
The exact same problem occurs there as well: when a Cyrillic layout is on,
Ctrl+Letter combinations do not work (it's in fact not just Ctrl+C and Ctrl+V,
but apparently all of them).
--
___
Terry J. Reedy added the comment:
IDLE is a tkinter application and tkinter wraps the tcl/tk GUI framework. Your
problem is mostly in the interaction between Windows, your Cyrillic input
method, and tk. As a test, run
import tkinter as tk
r = tk.Tk()
t = tk.Text(r)
t.pack()
Click in the bo