[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine


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.Kernel32.SetConsoleOutputCP(1251)
locale.setlocale(locale.LC_ALL, 'Russian')

Hence, I don't think this a viable option. And it would not be viable for 
either this project, nor Tk, to write our own codepages, so I'm not sure 
whether it is worth raising it with the Tk team.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine


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 if added to either Tk or Python.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine


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 to the clipboard). I'll take it up with the Tk 
team.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl


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 written in Latin alphabet, it's only rarely a problem, but, as I 
mentioned, sometimes one needs to edit string constants, and then it's an 
inconvenience (normally the exact same key combinations work).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl


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).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-11 Thread Terry J. Reedy


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 box, type something, and try Ctrl-X, -C, -V.  If they work, we can 
add explicit bindings somewhat similar to those IDLE makes.

Also, how do you make your keyboard a Cyrillic keyboard.

EP, are you aware of any related tk issues?  Serhiy, do you know of any 
specific problems with Cyrillic and tkinter/tk?

--
assignee: terry.reedy -> 
components: +Tkinter
nosy: +epaine, serhiy.storchaka
title: Ctrl+C, Ctrl+V in IDLE on Windows do not work with Cyrillic keyboard 
layout -> Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com