New submission from Terry J. Reedy <tjre...@udel.edu>:

This issue proposes to add a shell-specific sidebar to Shell.  It follows-up 
#17535, which added a line-number sidebar to module editors and implements the 
first phase of #37892, which proposes that the single statement editing area of 
Shell should be strictly just that.

Looking ahead to this issue, #17535 added both a generic Sidebar class and a 
specific LineNumber subclass.  This issue proposes to add a 3 char wide ShellIO 
subclass that would mark the beginning of the blocks of text added to the Shell 
history area. Labels, such as '>>>', 'Out', 'Inp', and 'Err' would be used for 
the first line of user code input, program stdout, user response to input() 
(there is only one line), and program stderr (which includes tracebacks).  I am 
not quite sure what to do with debug notices and warnings from the warning 
modules.  Maybe use 'Con', maybe use Dbg and Wrn.  I expect to test variations.

As with LineNumber, the font face and size will the the same as in the text.  
The labels should use the highlight colors of their text block except that 
'>>>' should continue getting the 'console' colors.

I thing the initial implementation should not response to clicks.  After 
experimentation, we might decide that clicking on a label could select whole 
blocks, but I would like get the essential stuff right first.

----------
messages: 350054
nosy: taleinat, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE Shell sidebar.
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37903>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to