[issue35833] Backspace not working

2019-01-26 Thread Martin Panter


Martin Panter  added the comment:

Ment to point to previous bug report: Issue 23220

--

___
Python tracker 

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



[issue35833] Backspace not working

2019-01-26 Thread Martin Panter

Martin Panter  added the comment:

I suspect Idle just passes control characters directly to an underlying Text or 
similar TK widget. As far as I know, TK only documents behaviour for tabs and 
newlines, not other control characters.

Last time this was brought up, Terry added a sentence under 
, third 
paragraph, about this:

“Newline characters cause following text to appear on a new line, but other 
control characters are either replaced with a box or deleted.”

--
nosy: +martin.panter

___
Python tracker 

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



[issue35833] Backspace not working

2019-01-26 Thread Dude Roast


New submission from Dude Roast :

Whenever I try to use Backspace(\b) it always prints square boxes instead of 
deleting previous string.

Code Down:- 

import pyautogui
print("Press Ctrl+c to quit")

try:
while True:
x,y = pyautogui.position();
positionStr = "X: " + str(x).rjust(4) + " Y: " + str(y).rjust(4)
print(positionStr,end ='')
print('\b'*len(positionStr),end='',flush=True)

except KeyboardInterrupt:
print("\nDone")


O/P:- 

Press Ctrl+c to quit
X:  317 Y:  261X:  317 Y:  261X:  317 Y:  
261X:  317 Y:  261X:  317 Y:  
261X:  317 Y:  261X:  317 Y:  
261X:  317 Y:  261X:  317 Y:  
261X:  317 Y:  261X:  317 Y:  
261X:  317 Y:  261X:  317 Y:  261
Done

--
assignee: terry.reedy
components: IDLE
files: mousenow.py
messages: 334394
nosy: Dude Roast, terry.reedy
priority: normal
severity: normal
status: open
title: Backspace not working
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48079/mousenow.py

___
Python tracker 

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