Author taleinat
Recipients Nashev, gpolo, kbk, michael.foord, rhettinger, taleinat, terry.reedy
Date 2010-07-20.14:12:44
SpamBayes Score 6.52549e-06
Marked as misclassified No
Message-id <1279635167.27.0.55575837938.issue1207589@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with Guilherme: shortcuts don't need to appear in the context menu.

Guilherme's patch looks pretty good overall, but I have a few remarks:

1) Pasting should be disabled in the Shell window when the cursor is before the I/O mark. (the behavior for cutting is correct)

2) Code relevant to the Shell window should be in PyShell, not in EditorWindow with a getattr(self, 'interp', None) check.

3) Tk.Text.compare can receive names of tags to compare (don't have to do Tk.Text.index('<tag name>'))

So I made these changes. Attached are patches against current trunk (2.x) and py3k branch.

My testing on Windows7 with both 2.7 and 3.1.2 showed this change works well. This should be tested on OSX and Linux since it interacts with the clipboard, which works differently on these platforms.
History
Date User Action Args
2010-07-20 14:12:47taleinatsetrecipients: + taleinat, rhettinger, terry.reedy, kbk, Nashev, gpolo, michael.foord
2010-07-20 14:12:47taleinatsetmessageid: <1279635167.27.0.55575837938.issue1207589@psf.upfronthosting.co.za>
2010-07-20 14:12:45taleinatlinkissue1207589 messages
2010-07-20 14:12:45taleinatcreate