[issue42121] unable to input certain Unicode characters in Text widget

2020-10-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I am closing this because I am rather sure that your problem is with your input 
method and its interaction with your OS and the tcl/tk GUI framework.  Tkinter 
has essentially nothing to do with key and mouse input.

A better place to ask for debugging help is 
https://mail.python.org/mailman/listinfo/python-list.  If you post there, 
include your OS.

For testing tkinter, you should input with keys, using the unicode escaped 
codes: '\u' for BMP chars, and '\U000#' for non-BMP chars, where each # 
is a hexadecimal character.

For using tkinter, you should use a recent release, within the last year, as 
tkinter's handling of non-ASCII chars are improved a year ago.   The fix may be 
in the 3.7.9 release.

If your browser supports unicode as well as, say, Firefox does, (which is 
better than Tkinter) your input method should work with it.

BPO is for developing patches to fix and enhance the Python docs and the 
CPython implementation.  You have not yet given evidence that there is bug in 
*current* CPython.  If you do, we can reopen.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue42121] unable to input certain Unicode characters in Text widget

2020-10-22 Thread Xuan Wu

New submission from Xuan Wu :

When creating a text editor with tkinter Text widget, I found that some Chinese 
punctuations cound't be input correctly.

When input "(", which is open parenthesis in Chinese, it behaves like a back 
space.
When input ")", close parenthesis in Chinese, it seems like a tab instead.
When input ";", semicolon in Chinese, it does nothing.

Then I tried input the same in IDLE 3.7.6 and the same happened. Also, the same 
happens in thonny, the python IDE. I suppose they all use Text widget.

Pitifully I don't think of a way to reproduce the issue without using Chinese 
input method.

Please let me know how to help with debugging. Thanks.

--
components: Tkinter
messages: 379345
nosy: nobodxbodon
priority: normal
severity: normal
status: open
title: unable to input certain Unicode characters in Text widget
versions: Python 3.7

___
Python tracker 

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