[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-15 Thread Mark Roseman

Mark Roseman added the comment:

The ttk Notebook wouldn't be appropriate as it doesn't scale beyond a small 
(generally fixed) number of tabs, and is missing UI to easily add/delete tabs. 
There's some discussion of this in earlier comments here.

--

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Vedran, thank you for the link.  The way IDLE looks on Mac is what we want on 
all systems.  I added a note to #24826.

Do you regularly work on Mac?  It would be help if someone were to test PRs on 
OSX, especially patches intended to change what users see.  Even a weekly test 
of a fresh download from the repository would be helpful.

--

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Hi Cedric, I have been 'considering' for at least 7 years, since the core devs 
who then cared about IDLE agreed that tabbed windows would be a good idea.  The 
direst analogy with programming editors with tabs.   Notepad++ is the one I 
have used.  My impression is that this is pretty standard.

One thing I would not copy from Notepad++ is allowing only one process at a 
time, and apparently only one tabbed window in the one process.  In intend that 
IDLE continue to allow multiple processes with multiple windows.  I expect that 
'New file' will be replaced with 'New tab' and 'New window', as with FireFox.

I intend that a single window to able to have at least 2 panes.  Look at 
turtledemo to see what this means. ('python -m turtledemo' or Help => 
Turtledemo in IDLE.)  Mentally replace the text and canvas with sets of tabbed 
pages, side by side. In fact, for my large widescreen monitor, I want 3 panes 
so I can have Shell, file, and test_file visible at once.

I have not yet really considered whether we should use an improved version of 
IDLE's tabbedpageset, used for configdialog, Mark's replacement, or ttk 
Notebook.

Also see the discussion on #24826.

--

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-13 Thread Vedran Čačić

Vedran Čačić added the comment:

OMG no! Please reconsider.

First, analogy with web browsers is bogus. The modes of usage is very 
different. We don't look at multiple tabs simultaneously very often, but we do 
look at multiple files at once using IDLE (at least I do).

And I'm not the only one. Please see how Raymond masterfully uses IDLE in 
https://www.youtube.com/watch?v=nO78ECRighw. Will this be as easy (or possible 
at all) with the tabbed interface?

Crowding of the taskbar is eliminated by various other techniques: Windows 10 
has virtual desktops, Linux has had them for a long time already. Please don't 
introduce real problems while solving a nonproblem.

--
nosy: +veky

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-07-13 Thread Charles Wohlganger

Charles Wohlganger added the comment:

I modified Mark Rosen's newTabExtension to work with more recent versions of 
IDLE, as it wasn't working when I tried it on mine. It's not clear if it ever 
could when it was originally working, but I can't get it to move tabs between 
multiple window instances.

--
nosy: +wohlganger
Added file: http://bugs.python.org/file47011/TabExtension.py

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-26 Thread Mark Roseman

Mark Roseman added the comment:

Have attached newTabExtension.py, which is Roger's tab extension, hacked to use 
uitabs.py instead of the UI previously built into that extension.

--
Added file: http://bugs.python.org/file40265/newTabExtension.py

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-26 Thread Mark Roseman

Mark Roseman added the comment:

Have attached uitabs.py.  From the header comments:

Standalone 'tabs' widget to switch between multiple different views.

Unlike the Tkinter ttk.Notebook widget, this widget is suitable for
displaying a potentially large number of tabs, as might be found in a
tabbed editor. If there are too many tabs to show based on the available
width, the remainder can be viewed via a popup menu on the last tab.

Tabs can be rearranged by dragging, closed, or new tabs added. Each tab
can have a title which is displayed in the tab, a tooltip for when the
mouse hovers over the tab, and a 'dirty' indicator that can be used to
indicate files needing to be saved.

The appearance and behaviour of the tabs is strongly influenced by the
TextMate editor on Mac OS X.

Implementation is via a single Tkinter canvas.

Unlike many other tabbed widgets, this widget does not take care of
actually switching content being displayed; this is left to the caller.

A UITabsObserver (see below) must be provided to the widget, and is
used to notify the caller when changes are made that must be reflected
in other parts of the user interface.

--
Added file: http://bugs.python.org/file40264/uitabs.py

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-23 Thread Mark Roseman

Mark Roseman added the comment:

I've put together a standalone tabs widget (mostly done) based on Tk canvas 
widget, that emulates the behaviour of TextMate's tabs. I was able to modify 
Roger's extension to use this widget. See attached screenshot newtabs.png (tabs 
area is fully functioning, bottom debug area is just UI).

--
Added file: http://bugs.python.org/file40234/newtabs.png

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-12 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A tabbed widget, however implemented, should be a component that can either be 
in a Toplevel with menu by itself, or added to an application window (#24826).

--

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-12 Thread Mark Roseman

Mark Roseman added the comment:

Roger's extension is an amazingly cool hack. With some of the decoupling 
mentioned in #24826, the actual switching should get easier.

Regarding cosmetics, I wanted to make a suggestion. The tabs provided by 
ttk::notebook aren't ideally suited for this task, both visually on some 
platforms (hello Mac) and also because they're designed for a fixed (small) 
number of tabs.

One of the better implementations of tabs I've seen is in the Mac editor 
TextMate. I've attached a set of annotated screenshots as tmtabs.png. It's nice 
and clean. Doing this as a widget based on the Tkinter canvas looks very 
feasible.

--
versions: +Python 2.7, Python 3.5, Python 3.6 -Python 3.3
Added file: http://bugs.python.org/file40167/tmtabs.png

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-07 Thread Mark Roseman

Changes by Mark Roseman :


--
nosy: +markroseman

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2014-02-04 Thread Tal Einat

Changes by Tal Einat :


--
nosy:  -taleinat

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2012-02-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2011-08-26 Thread Roger Serwy

Roger Serwy  added the comment:

Attached is an extension which provides tabbed windows for IDLE. It supports 
drag-and-drop reordering and separate windows. 

The implementation relies on monkey-patching a few subroutines and duck-typing 
for the toplevel window. The extension emulates each tab as if it were its own 
toplevel object. 

There can be flickering when switching tabs due to swapping the toplevel menu 
bar. This seems to be a limitation of Tk.

--
Added file: http://bugs.python.org/file23050/TabExtension.py

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2011-01-09 Thread Roger Serwy

Changes by Roger Serwy :


--
nosy: +serwy

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-20 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy: +brian.curtin

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-20 Thread Tal Einat

Tal Einat  added the comment:

(Note: there has recently been some discussion of this on idle-dev and 
python-dev.)

This may be nice to have but has complications. I think there are currently 
more pressing issues regarding IDLE that require our attention.

Also, just adding tabs isn't necessarily enough. Having several separate 
windows should still be an option. And if you can have several windows, each 
with several tabs, drag-n-drop moving of tabs between windows is really nice to 
have, not to mention drag-n-drop reordering of tabs.

--
nosy: +taleinat

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-14 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-14 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Changed title to match new info. Tabs might also be used for any pop-up windows 
that would benefit from persistence. [JEdit does this, but being 
non-language-specific, it does not have a shell with error traceback.]

--
title: IDLE: Use ttk.Notebook for tabbed windows -> IDLE: Use tabbed shell and 
edit windows

___
Python tracker 

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