| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Extra newlines are removed at the end of non-shell files. If the file only has newlines after stripping other trailing whitespace, all are removed, as is done by patchcheck.py.
|
|
|
|
|
| |
These Format menu functions (default shortcuts Alt-T and Alt-U)
were mistakenly disabled in 3.7.5 and 3.8.0.
|
|
|
| |
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
|
| |
|
|
|
|
|
|
|
| |
stderr. (GH-16583)
It now escapes them with a backslash, as the regular Python interpreter.
Added the "errors" field to the standard streams.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-16545)
On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the
"surrogatepass" error handler for converting to/from Tcl Unicode objects.
On Linux use UTF-8 with the "surrogateescape" error handler for converting
to/from Tcl String objects.
Converting strings from Tcl to Python and back now never fails
(except MemoryError).
|
|
|
|
|
| |
It no longer tries to create or access .idlerc or any files within.
Users must run IDLE to discover problems with saving settings.
|
|
|
| |
Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
|
|
|
|
| |
Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
|
|
|
|
| |
Extending the hover delay in test_tooltip should avoid spurious test_idle failures.
One longer delay instead of two shorter delays results in a net speedup.
|
|
|
|
|
|
|
|
|
| |
These were caused by keeping around a reference to the Squeezer
instance and calling it's load_font() upon config changes, which
sometimes happened even if the shell window no longer existed.
This change completely removes that mechanism, instead having the
editor window properly update its width attribute, which can then
be used by Squeezer.
|
| |
|
|
|
| |
Convert mouse y to line number in the sidebar rather than the text.
|
| |
|
|
|
| |
They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
|
|
|
|
| |
The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
|
| |
|
|
|
| |
Repeat the command line arguments most recently entered before so the user can edit them.
|
|
|
|
|
|
|
| |
(GH-14821)
Eliminate delay of up to 100ms and accompanying visual artifact.
Fix bug of never showing context when hide and show.
|
|
|
|
|
|
| |
Add two indent spec methods from editor and Rstrip to existing file.
Tests are not added for indent methods because they need change
in lights of 3.x's prohibition on mixing tabs and spaces.
|
|
|
|
|
| |
Rename paragraph.py to format.py and add region formatting methods
from editor.py. Add tests for the latter.
|
|
|
|
|
|
|
|
|
|
|
| |
* Only create CodeContext instances for "real" editors windows, but
not e.g. shell or output windows.
* Remove configuration update Tk event fired every second, by having
the editor window ask its code context widget to update when
necessary, i.e. upon font or highlighting updates.
* When code context isn't being shown, avoid having a Tk event fired
every 100ms to check whether the code context needs to be updated.
* Use the editor window's getlineno() method where applicable.
* Update font of the code context widget before the main text widget
|
| |
|
| |
|
|
|
| |
After fcf1d00, IDLE startup failed with python compiled without docstrings.
|
|
|
|
|
|
|
|
| |
This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.
This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
|
|
|
| |
Tab now moves focus across and down for Help Source and Custom Run.
|
|
|
| |
The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
|
|
|
| |
The patch needed for 2.7 should make the test more stable on 3.x also.
|
|
|
| |
* Change from Dummy_Editwin to DummyEditwin to match other tests.
|
|
|
| |
This avoids the search dialogs being hidden behind the editor window.
|
|
|
| |
Add it to the end of the first line if there is room. Tests were reworked.
|
| |
|
|
|
|
| |
Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
|
|
|
| |
Insertion in line order makes sorting keys by line order unneeded.
|
|
|
|
| |
It seems to be the only widget label not capitalized.
|
| |
|
| |
|
|
|
|
| |
Fix error in commit 2b75155 noticed by Serhiy Storchaka.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.
Based on a patch by Al Sweigart.
|
|
|
|
| |
This param was only used once and changed the return type.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
IDLE's test_squeezer.SqueezerTest.test_reload, added for issue 35196,
failed on both Gentoo buildbots.
|
|
|
|
| |
The new functionality of Squeezer.reload() is also tested, along with some general
re-working of the tests in test_squeezer.py.
|
| |
|
| |
|
|
|
|
|
| |
Move translate_key() and constant tuples to module level.
Inline the remnant one-line function.
|