Terry Jan Reedy
16ef324193
bpo-37309: Update IDLE NEWS.txt (GH-20356)
2020-05-24 09:57:55 -04:00
Florian Dahlitz
905b3cd05f
bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)
...
This was the only failure running unittest.main(test.test_idle) after imports.
2020-05-24 06:53:44 -04:00
Victor Stinner
edf2643bbb
bpo-40460: Fix typo in idlelib/zzdummy.py (GH-20093)
...
Replace ztest with ztext.
2020-05-15 00:51:51 +02:00
Victor Stinner
6900f16d22
bpo-40443: Remove unused imports in idlelib (GH-19801)
2020-04-29 21:28:51 -04:00
Miro Hrončok
3a69f3caee
bpo-38439: Add 256px IDLE icon (GH-17473)
...
Icon author: Andrew Clover, bpo-1490384
2020-04-22 03:21:44 -04:00
Tal Einat
52013e5b6d
bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)
...
Inspect.signature failed on the test case because its isinstance call raised.
2020-04-03 23:05:58 -04:00
Terry Jan Reedy
34a49aa3e4
bpo-38002: Use False/True for IDLE pyshell bools (GH-19203)
...
Change 0/1 assignments to 'executing', 'canceled', 'reading', 'endoffile'.
These are not used outside of pyshell. Other bools already use False/True.
Add comment about int needed for Windows call.
Remove self.more, unused in idlelib and code.InteractiveInterpreter.
The latter uses 'more' as a local.
2020-03-28 12:51:21 -04:00
Terry Jan Reedy
363fab83b8
bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871)
...
Replace tkinter tkSimpleDialog.askinteger with a standard IDLE query dialog.
The new box checks for positivity before returning.
2020-03-09 16:51:20 -04:00
Terry Jan Reedy
e53a3932cb
bpo-27115: Move IDLE Query error blanking (GH-18868)
...
Move required blanking of error text to non-overridden entry_ok().
(Omit news item.)
2020-03-09 01:38:07 -04:00
Terry Jan Reedy
4ca060d8ad
bpo-39885: IDLE context menu clears selection ( #18859 )
...
Since clicking to get an IDLE context menu moves the cursor,
any text selection should be and now is cleared.
2020-03-08 15:30:04 -04:00
Terry Jan Reedy
2522db11df
bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801)
...
It appears standard that moving the text insert cursor away from a selection clears the
selection. Clearing prevents accidental deletion of a possibly off-screen bit of text.
The update is for Ln and Col on the status bar.
2020-03-08 14:32:42 -04:00
Terry Jan Reedy
c705fd1e89
bpo-39781: Do not jump when select in IDLE codecontext (GH-18683)
...
Previously, the button-up part of selecting with a mouse was treated as a click
that meant 'jump' to this line, which modified the context and undid the selection
2020-02-28 13:22:55 -05:00
Cheryl Sabella
ffda25f6b8
bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)
...
Test when find_good_parse_start should return 0.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-02-17 21:47:52 -05:00
Terry Jan Reedy
96ce227067
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
...
Complete previous patch.
2020-02-10 20:08:58 -05:00
Victor Stinner
ed335cf53b
bpo-39600, IDLE: Remove duplicated font names (GH-18430)
...
In the font configuration window, remove duplicated font names.
2020-02-10 11:41:26 -08:00
Zackery Spytz
bfdeaa37b3
bpo-38792: Remove IDLE shell calltip before new prompt. ( #17150 )
...
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2020-01-30 20:55:42 -05:00
Cheryl Sabella
dd023ad161
bpo-30780: Add IDLE configdialog tests ( #3592 )
...
Expose dialog buttons to test code and complete their test coverage.
Complete test coverage for highlights and keys tabs.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-27 17:15:56 -05:00
Cheryl Sabella
d0d9fa8c5e
bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-25 04:00:54 -05:00
Terry Jan Reedy
f9e07e116c
bpo-32989: IDLE - remove unneeded parameter (GH-18138)
...
IDLE does not pass a non-default _synchre in any of its calls to
pyparse.find_good_parse_start.
2020-01-22 23:55:07 -05:00
Zackery Spytz
2e43b64c94
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-22 22:54:30 -05:00
Cheryl Sabella
ec64640a2c
bpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968)
...
Fix comments and add tests for editor newline_and_indent_event method.
Remove unused None default for function parameter of pyparse find_good_parse_start method
and code triggered by that default.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-21 05:11:26 -05:00
Tal Einat
d6c08db853
Minor formatting improvements and fixes to idle.rst (GH-17165)
2020-01-05 18:51:48 -05:00
Terry Jan Reedy
ba82ee894c
Fix idlelib README typo. (GH-17770)
2019-12-31 13:34:22 -05:00
Gurupad Hegde
6c7bb38ff2
bpo-39136: Fixed typos (GH-17720)
...
funtion -> function; configuraton -> configuration; defintitions -> definitions;
focusses -> focuses; necesarily -> necessarily; follwing -> following;
Excape -> Escape,
2019-12-28 17:16:02 -05:00
JohnnyNajera
bbc4162baf
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
...
This has happened on some versions of Ubuntu.
2019-12-09 19:30:01 -05:00
JohnnyNajera
232689b40d
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
2019-12-09 18:22:16 -05:00
Terry Jan Reedy
6bf644ec82
bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines (GH-17366)
...
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.
2019-11-24 16:29:29 -05:00
Terry Jan Reedy
b8462477bf
bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008)
...
These Format menu functions (default shortcuts Alt-T and Alt-U)
were mistakenly disabled in 3.7.5 and 3.8.0.
2019-11-20 01:18:39 -05:00
Zackery Spytz
9c2844927d
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
...
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
2019-11-13 02:13:33 -05:00
Zackery Spytz
c8b53dc3d8
bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)
2019-11-12 05:54:10 -05:00
Terry Jan Reedy
a8fb9327fb
bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947)
2019-10-27 01:23:30 -04:00
Terry Jan Reedy
e31a79a5b4
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
2019-10-26 22:19:57 -04:00
Terry Jan Reedy
e3f90b217a
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
2019-10-26 21:15:10 -04:00
Serhiy Storchaka
b690a2759e
bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583)
...
It now escapes them with a backslash, as the regular Python interpreter.
Added the "errors" field to the standard streams.
2019-10-08 14:32:25 +03:00
Serhiy Storchaka
06cb94bc84
bpo-13153: Use OS native encoding for converting between Python and Tcl. (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).
2019-10-04 13:09:52 +03:00
Terry Jan Reedy
dfd34a9cd5
bpo-35379: When exiting IDLE, catch any AttributeError. (GH-16212)
...
One happens when EditorWindow.close is called twice.
Printing a traceback, when IDLE is run from a terminal,
is useless and annoying.
2019-09-17 02:05:04 -04:00
Terry Jan Reedy
0048afc16a
bpo-38183: Test_idle ignores user config directory GH-16198)
...
It no longer tries to create or access .idlerc or any files within.
Users must run IDLE to discover problems with saving settings.
2019-09-16 19:04:21 -04:00
Terry Jan Reedy
c59295a1ca
bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)
...
This only happened when initializing the subprocess to run a module.
This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
2019-09-09 23:10:44 -04:00
Terry Jan Reedy
38da805d56
bpo-38041: Refine IDLE Shell restart lines. (GH-15709)
...
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.
2019-09-06 13:54:45 -04:00
GeeTransit
2cd9025858
bpo-37902: IDLE: Add scrolling for IDLE browsers. ( #15368 )
...
Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
2019-09-04 21:33:33 -04:00
Terry Jan Reedy
6cd9666ce9
Fix idlelib.help comments (GH-15669)
2019-09-04 20:20:08 -04:00
Tal Einat
580bdb0ece
bpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (GH-15664)
...
The HTML5 output from Sphinx 2.x adds '<p>' tags within list elements. Using a new prevtag attribute, ignore these instead of emitting unwanted '\n\n'.
Also stop looking for 'first' classes on tags (no longer present) and fix the bug of double-spacing instead of single spacing after <pre> blocks.
2019-09-03 16:52:58 -04:00
Tal Einat
132acaba5a
bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)
...
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.
2019-09-03 01:17:00 -04:00
Terry Jan Reedy
15119bc2a7
IDLE: Fix 2 typos found by Min ho Kim. (GH-15617)
2019-08-30 16:16:37 -04:00
Terry Jan Reedy
1039f39c9c
bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)
...
Cease turning SyntaxWarnings into SyntaxErrors.
2019-08-26 02:27:56 -04:00
Tal Einat
d4b4c00b57
bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)
...
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.
2019-08-25 08:52:58 +03:00
Greg Price
9ece4a5057
Unmark files as executable that can't actually be executed. (GH-15353)
...
There are plenty of legitimate scripts in the tree that begin with a
`#!`, but also a few that seem to be marked executable by mistake.
Found them with this command -- it gets executable files known to Git,
filters to the ones that don't start with a `#!`, and then unmarks
them as executable:
$ git ls-files --stage \
| perl -lane 'print $F[3] if (!/^100644/)' \
| while read f; do
head -c2 "$f" | grep -qxF '#!' \
|| chmod a-x "$f"; \
done
Looking at the list by hand confirms that we didn't sweep up any
files that should have the executable bit after all. In particular
* The `.psd` files are images from Photoshop.
* The `.bat` files sure look like things that can be run.
But we have lots of other `.bat` files, and they don't have
this bit set, so it must not be needed for them.
Automerge-Triggered-By: @benjaminp
2019-08-20 21:53:59 -07:00
Tal Einat
71662dc2f1
bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
2019-08-14 13:06:06 -04:00
Terry Jan Reedy
1213123005
bpo-36419: IDLE - Refactor autocompete and improve testing. ( #15121 )
2019-08-04 19:48:52 -04:00
Terry Jan Reedy
14070299cd
bpo-37748: Re-order the Run menu. (GH-15115)
...
Put the most common choice, Run Module, at the top.
2019-08-04 16:45:15 -04:00
Tal Einat
86f1a18abf
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
...
Convert mouse y to line number in the sidebar rather than the text.
2019-08-04 12:25:27 -04:00
Terry Jan Reedy
fff5cb21ae
bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
2019-07-31 00:58:45 -04:00
Terry Jan Reedy
0acb646b8e
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
2019-07-30 18:14:58 -04:00
Terry Jan Reedy
f35c51d2ea
bpo-34162: Update idlelib/news.txt. ( #15011 )
2019-07-29 18:12:14 -04:00
Terry Jan Reedy
e8874b85b4
bpo-37706: Disable 3 IDLE scrollbar tests on Mac. ( #15010 )
...
They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
2019-07-29 17:57:36 -04:00
Terry Jan Reedy
b222955355
bpo-37692: Improve highlight config sample ( #14983 )
...
Use an example shell interaction in the sample and better labels for shell elements.
2019-07-28 12:04:31 -04:00
Tal Einat
3221a63c69
bpo-37628: Fix IDLE config sample sizes ( #14958 )
...
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.
2019-07-27 12:57:48 -04:00
Tal Einat
46ebd4a6a2
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
2019-07-26 23:24:36 -04:00
Terry Jan Reedy
c6fd6c83b7
bpo-29446: IDLE -- add explicit imports (GH-14919)
...
Stop depending on tkinter import *.
2019-07-23 16:14:59 -04:00
Tal Einat
7123ea009b
bpo-17535: IDLE editor line numbers (GH-14030)
2019-07-23 15:22:11 +03:00
Tal Einat
1ebee37dde
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
2019-07-23 13:02:11 +03:00
Terry Jan Reedy
8e3a7380ec
Fix typo found by Min ho Kim ( #14879 )
2019-07-21 15:24:45 -04:00
Ngalim Siregar
35b87e6001
bpo-37627: Initialize IDLE Custom Run dialog with previous entries ( #14870 )
...
Repeat the command line arguments most recently entered before so the user can edit them.
2019-07-21 11:37:28 -04:00
Tal Einat
e0a1f8fb5c
bpo-33610: IDLE's code-context always shows current context immediately (GH-14821)
...
Eliminate delay of up to 100ms and accompanying visual artifact.
Fix bug of never showing context when hide and show.
2019-07-18 16:03:18 -04:00
Terry Jan Reedy
1b38922434
bpo-36390: Gather IDLE Format menu functions into format.py ( #14827 )
...
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.
2019-07-17 20:48:36 -04:00
Cheryl Sabella
82494aa6d9
bpo-36390: IDLE: Combine region formatting methods. (GH-12481)
...
Rename paragraph.py to format.py and add region formatting methods
from editor.py. Add tests for the latter.
2019-07-17 09:44:44 -04:00
Tal Einat
7036e1de3a
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
...
* 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
2019-07-17 11:15:53 +03:00
Cheryl Sabella
f8d4cc7dbb
bpo-27452: IDLE: Cleanup config.py code (GH-14577)
2019-07-16 16:58:25 -04:00
Tal Einat
9b5ce62cac
bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)
2019-07-11 17:20:14 +03:00
Terry Jan Reedy
6aeb2fe606
bpo-26806: IDLE should run without docstrings ( #14657 )
...
After fcf1d00
, IDLE startup failed with python compiled without docstrings.
2019-07-09 14:37:25 -04:00
Tal Einat
fcf1d003bf
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
...
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.
2019-07-06 15:35:24 +03:00
İsmail Arılık
8713aa6dfb
Fix typo, 'widger' -> 'widget', in idlelib/tree.py (GH-14263)
2019-06-20 10:30:55 -04:00
Terry Jan Reedy
54cf2e0780
bpo-37325: Fix focus traversal for 2 IDLE dialogs ( #14209 )
...
Tab now moves focus across and down for Help Source and Custom Run.
2019-06-18 17:08:24 -04:00
Cheryl Sabella
201bc2d18b
bpo-5680: IDLE: Customize running a module (GH-13763)
...
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.
2019-06-17 22:24:10 -04:00
Terry Jan Reedy
8fac122109
bpo-37321: Edit IDLE subprocess connection error messages. ( #14170 )
...
Mainly, add a doc reference to message in pyshell.
2019-06-17 17:23:28 -04:00
Tal Einat
5bff3c86ab
bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)
...
Measure required height by quickly maximizing once per screen.
A search for a better method failed.
2019-06-17 15:41:00 -04:00
Terry Jan Reedy
66d47da86a
bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)
...
The patch needed for 2.7 should make the test more stable on 3.x also.
2019-06-16 16:33:56 -04:00
Cheryl Sabella
7f8a38a7c4
IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)
...
* Change from Dummy_Editwin to DummyEditwin to match other tests.
2019-06-07 05:08:20 -04:00
Tal Einat
554450fb4e
bpo-37177: make IDLE's search dialogs transient (GH-13869)
...
This avoids the search dialogs being hidden behind the editor window.
2019-06-07 08:54:40 +03:00
Terry Jan Reedy
949fe976d5
bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)
...
Add it to the end of the first line if there is room. Tests were reworked.
2019-06-04 21:55:37 -04:00
Xtreak
d9677f36fe
IDLE: Fix typos in docs and comments (GH-13749)
2019-06-03 00:21:15 -04:00
Cheryl Sabella
6bdc4dee01
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
...
Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
2019-06-02 14:56:47 -04:00
Cheryl Sabella
1a4d9ffa1a
bpo-32411: IDLE: Remove line number sort in browser.py ( #5011 )
...
Insertion in line order makes sorting keys by line order unneeded.
2019-06-01 17:03:22 -04:00
Serhiy Storchaka
2085bd0877
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
2019-06-01 11:00:15 +03:00
Terry Jan Reedy
ba0430211f
IDLE - Capitalize search dialogs' 'Close' button label. ( #13691 )
...
It seems to be the only widget label not capitalized.
2019-05-31 04:26:35 -04:00
Terry Jan Reedy
df9b032f47
bpo-37039: IDLE - zoomheight fixes (GH-13576)
...
Move doc entry to match menu and refactor zoom function.
A followup patch will include a blurb.
2019-05-27 19:16:46 -04:00
Terry Jan Reedy
81bb97df61
bpo-37038: Make idlelib.run runnable; add test clause (GH-13560)
2019-05-24 21:59:53 -04:00
Terry Jan Reedy
6d965b39b7
bpo-36958: In IDLE, print exit message (GH-13435)
...
Print any argument other than None or int passed to SystemExit
or sys.exit().
2019-05-19 22:52:22 -04:00
Terry Jan Reedy
8a533ffb49
Fix typos in documentation. Patch by tirkarthi. (GH-13354)
2019-05-16 01:20:37 -04:00
Guido van Rossum
4f098b35f5
bpo-36807: When saving a file in IDLE, call flush and fsync ( #13102 )
2019-05-13 08:31:29 -04:00
penguindustin
9646630895
bpo-36766: Typos in docs and code comments (GH-13116)
2019-05-06 14:57:17 -04:00
Terry Jan Reedy
55d035113d
Syntax highlight IDLE html doc code example. (GH-12981)
...
The new markup is currently ignored by IDLE's tk doc display.
2019-04-26 23:22:36 -04:00
Serhiy Storchaka
da0847048a
bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)
2019-03-27 08:02:28 +02:00
Terry Jan Reedy
6a258c8890
bpo-36429: Fix starting IDLE with pyshell ( #12548 )
...
Add idlelib.pyshell alias at top; remove pyshell alias at bottom.
Remove obsolete __name__=='__main__' command.
2019-03-26 19:58:19 -04:00
Louie Lu
113d735e20
bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)
2019-03-24 19:33:12 -04:00
Terry Jan Reedy
0fe4513d9a
bpo-36405: IDLE - Restore __main__ and add tests ( #12518 )
...
Fix error in commit 2b75155
noticed by Serhiy Storchaka.
2019-03-24 17:12:28 -04:00
Cheryl Sabella
d60f658fc0
bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)
...
* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.
Based on a patch by Al Sweigart.
2019-03-23 07:33:42 -04:00
Terry Jan Reedy
2b75155590
bpo-36405: Use dict unpacking in idlelib ( #12507 )
...
Remove now unneeded imports.
2019-03-23 03:50:15 -04:00
Terry Jan Reedy
c1419578a1
bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)
...
This param was only used once and changed the return type.
2019-03-22 18:23:41 -04:00
Cheryl Sabella
0bb5e75cf8
bpo-23216: IDLE: Add docstrings to search modules (GH-12141)
2019-03-16 19:29:33 -04:00
Terry Jan Reedy
491ef53c15
bpo-36176: Fix IDLE autocomplete & calltip popup colors. ( #12262 )
...
Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
2019-03-10 20:18:40 -04:00
Terry Jan Reedy
8a1bab9291
bpo-34162: Add entries for idlelib/NEWS.txt ( #12232 )
2019-03-08 03:04:32 -05:00
Ned Deily
7eebbbd5b3
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)
...
Patch by Kevin Walzer.
2019-03-01 17:53:50 -05:00
Cheryl Sabella
b9f0354efc
bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)
...
Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close(). In IDLE, both have always been None or False since 2007.
2019-03-01 05:19:40 -05:00
Cheryl Sabella
ed1deb0719
bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002)
2019-02-27 08:21:16 -05:00
Terry Jan Reedy
d610116a2e
bpo-24310: Document IDLE settings dialog font tab sample (GH-12007)
2019-02-23 23:04:53 -05:00
Cheryl Sabella
ee0f927bd8
bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)
2019-02-19 00:11:18 -05:00
Terry Jan Reedy
8a03ff2ff4
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
...
Add a code example block.
2019-02-08 22:51:51 -05:00
Steve Dower
28f6cb34f6
bpo-35683: Improve Azure Pipelines steps (GH-11493)
2019-01-22 10:49:52 -08:00
Terry Jan Reedy
2cf1ddaff4
bpo-35770: Fix off-by-1 error. ( #11618 )
2019-01-18 17:05:40 -05:00
Terry Jan Reedy
39ed289a35
bpo-35770: IDLE macosx deletes Options => Configure IDLE. (GH-11614)
...
It previously deleted Window => Zoom Height by mistake.
(Zoom Height is now on the Options menu). On Mac, the settings
dialog is accessed via Preferences on the IDLE menu.
2019-01-18 14:00:45 -05:00
Terry Jan Reedy
a902239f22
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
...
'Untitled' violates the PEP 8 standard for .py files
2019-01-18 02:09:53 -05:00
Tal Einat
e55cf024ca
bpo-35730: IDLE - test squeezer reload() by checking load_font() (GH-11585)
2019-01-17 21:26:06 -05:00
Terry Jan Reedy
56c16057c6
bpo-34161: Update idlelib/NEWS.txt to 2019 Jan 17 (GH-11597)
2019-01-17 18:44:13 -05:00
Terry Jan Reedy
5bb146aaea
bpo-35730: Disable IDLE test_reload assertion. (GH-11543)
...
IDLE's test_squeezer.SqueezerTest.test_reload, added for issue 35196,
failed on both Gentoo buildbots.
2019-01-13 12:50:29 -05:00
Tal Einat
39a33e9927
bpo-35196: Optimize Squeezer's write() interception (GH-10454)
...
The new functionality of Squeezer.reload() is also tested, along with some general
re-working of the tests in test_squeezer.py.
2019-01-13 17:01:50 +02:00
Cheryl Sabella
11303dd603
bpo-35660: Fix imports in idlelib.window ( #11434 )
...
* bpo-35660: IDLE: Remove * import from window.py
* sys was being imported through the *, so also added an import sys.
* Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst
Anyone who wants details can check the issue, where I added the point about the sys import bug.
2019-01-06 15:55:52 -05:00
Emmanuel Arias
ab54b9a130
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
2019-01-03 02:47:58 -05:00
Terry Jan Reedy
aff0adabf3
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
2019-01-02 22:04:06 -05:00
Cheryl Sabella
b4ea8bb080
bpo-35598: IDLE - Globalize some config_key objects (GH-11392)
...
Move translate_key() and constant tuples to module level.
Inline the remnant one-line function.
2018-12-31 15:06:35 -05:00
Cheryl Sabella
4bd79c38ef
bpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)
2018-12-30 14:48:51 -05:00
Cheryl Sabella
b0a6196ffd
bpo-35598: IDLE: Increase test coverage for config_key.py ( #11360 )
2018-12-29 23:25:09 -05:00
Terry Jan Reedy
4bc246786f
bpo-34055: Revert deletion of line in IDLE's PyShell ( #11346 )
...
The attribute is still used in other modules.
2018-12-28 20:06:16 -05:00
Cheryl Sabella
c0381aaea4
bpo-28097: IDLE - Add Previous/Next History to Shell menu ( #11325 )
2018-12-28 15:11:30 -05:00
Cheryl Sabella
804a5d94b6
IDLE: Create function to update menu item state. (GH-11343)
...
This will be needed for other menu items. Change outwin to call the function instead of updating the menu item directly.
2018-12-28 13:15:30 -05:00
Terry Jan Reedy
c465682718
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
2018-12-28 02:41:35 -05:00
Cheryl Sabella
55698cc395
bpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)
...
A few other changes make the code easier to follow.
2018-12-27 22:47:54 -05:00
Tal Einat
44a79cc5b3
bpo-35208: Fix IDLE Squeezer line counting (GH-10449)
2018-12-24 14:05:51 +02:00
Cheryl Sabella
8874f511e7
bpo-35555: IDLE: Gray out Code Context menu item on non-editors ( #11282 )
...
The Code Context menu item only works on Editor windows so disable it for others.
2018-12-23 16:26:53 -05:00
Cheryl Sabella
c1b4b0f616
bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)
...
The Code Context menu label now toggles between Show/Hide Code Context.
The Zoom Height menu now toggles between Zoom/Restore Height.
Zoom Height has moved from the Window menu to the Options menu.
https://bugs.python.org/issue22703
2018-12-21 22:25:45 -08:00
Terry Jan Reedy
292cd6e331
bpo-35521: Add more cross-refs to IDLE docs ( #11257 )
...
Format menu and preferences.
2018-12-20 06:06:29 -05:00
Terry Jan Reedy
87ec1104b3
bpo-34162: Update idlelib/NEWS.txt to 2018-12-20. ( #11255 )
2018-12-20 01:07:10 -05:00
Cheryl Sabella
01421bec1e
bpo-35521: IDLE: Add code context section to docs ( #11205 )
...
Also add some internal cross-references.
2018-12-20 00:38:54 -05:00
Tal Einat
9ebe8794f0
bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" ( #10464 )
...
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always"
* add NEWS entry
* address code review comments
* address second code review comments
* Add entry for idlelib/NEWS.txt.
2018-12-07 01:32:21 -05:00
Serhiy Storchaka
42b1d6127b
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
2018-12-06 22:36:55 +02:00
Terry Jan Reedy
6ea9d54dea
bpo-34162: Update idlelib NEWS to 2018-12-05. (GH-10964)
2018-12-06 00:46:22 -05:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
5a087d5401
bpo-35202: Remove more unused imports in idlelib (GH-10573)
2018-11-17 01:38:01 -05:00
Terry Jan Reedy
b65413b497
bpo-35213: Where appropriate, use 'macOS' in idlelib. ( #10478 )
2018-11-15 13:15:13 -05:00
Terry Jan Reedy
50ff02b431
bpo-34864: Document two IDLE on MacOS issues. (GH-10456)
...
The System Preferences Dock "prefer tabs always" setting disables some
IDLE features. Menus are a bit different than as described for Windows
and Linux.
2018-11-10 23:26:31 -05:00
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
43a74abb3a
bpo-35202: Remove unused imports in idlelib (GH-10438)
2018-11-10 01:45:31 -05:00
Terry Jan Reedy
76cd0c30d6
bpo-33000: Document that IDLE's shell has no line limit. ( #10373 )
...
A program that runs indefinitely can overfill memory.
2018-11-06 23:55:06 -05:00
Terry Jan Reedy
75d9d59ab3
bpo-23220: Explain how IDLE's Shell displays output (GH-10356)
...
Add a new subsection to the doc.
2018-11-06 12:37:36 -05:00
Terry Jan Reedy
f1d3efc2fb
bpo-35099: Update idlelib/help.html ( #10353 )
...
(This should have been done with the first PR for this issue.)
2018-11-05 22:17:57 -05:00
Serhiy Storchaka
34fd4c2019
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
...
Two kind of mistakes:
1. Missed space. After concatenating there is no space between words.
2. Missed comma. Causes unintentional concatenating in a list of strings.
2018-11-05 16:20:25 +02:00
Terry Jan Reedy
ea9c8bd443
bpo-35097: Add IDLE doc subsection explaining editor windows. ( #10206 )
...
Topics include opening, title and status bar, .py* extension, and running.
2018-10-28 20:42:18 -04:00
Terry Jan Reedy
18032632ab
Issue 35093: Document the IDLE document viewer in the IDLE doc. ( #10195 )
...
Add a paragraph in "Help and preferences", "Help sources" subsection.
2018-10-28 16:21:18 -04:00
Terry Jan Reedy
68d6dc0770
bpo-1529353: Explain Shell text squeezing in the IDLE doc. ( #10169 )
2018-10-28 12:44:44 -04:00
Terry Jan Reedy
2b555fc1f0
bpo-35088: Update idlelib.help.copy_string docstring ( #10164 )
...
We now use git and backporting instead of hg and forward merging.
2018-10-28 01:29:00 -04:00
Terry Jan Reedy
db40cb50eb
bpo-35087: Update idlelib help files for the current doc build. (GH-10162)
...
There is only one trivial change to idle.rst. Nearly all the changes to help.html are the elimination of chapter and section numbers on headers due to changes in the build system. help.py no longer requires header numbering.
2018-10-28 01:21:36 -04:00
Terry Jan Reedy
d274afb5e5
bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)
...
A Windows build with _tkinter, tkinter, and idlelib
but without ctypes is unlikely but apparently possible.
2018-10-13 20:00:31 -04:00
Stéphane Wirtel
683281f536
bpo-34906: Doc: Fix typos (2) (GH-9735)
...
Fix typos
2018-10-06 16:35:53 +02:00
Terry Jan Reedy
5fa247d60d
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
...
Patch by Serhiy Storchaka (in PR #9642 ).
2018-09-30 17:17:17 -04:00
Terry Jan Reedy
22ef31d0b4
bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)
2018-09-25 13:41:25 -04:00
Tal Einat
604e7b9931
bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)
2018-09-25 15:10:14 +03:00
Terry Jan Reedy
16fba62314
bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)
2018-09-24 20:11:45 -04:00
Terry Jan Reedy
5a606674ed
bpo-34162: Add entry for idlelib/NEWS.txt already included for 3.6/3.7 (GH-9549)
2018-09-24 19:15:40 -04:00
Tal Einat
c87d9f406b
bpo-34548: IDLE: use configured theme colors in TextView (GH-9008)
...
https://bugs.python.org/issue34548
2018-09-23 05:23:15 -07:00
Tal Einat
077059e0f0
bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)
2018-08-10 09:02:08 +03:00
Tal Einat
87e59ac11e
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
...
* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
2018-08-05 09:21:08 +03:00
Terry Jan Reedy
9beaef6225
bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
...
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
2018-08-02 22:50:01 -04:00
Tal Einat
dd74369cb7
bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)
2018-08-02 10:30:06 +03:00
Tal Einat
10ea9409ce
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
...
Added missing .grab_release() calls to all places where we call .grab_set().
2018-08-02 09:18:29 +03:00
Terry Jan Reedy
2c5c0a367c
bpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345)
2018-07-20 02:14:56 -04:00
Terry Jan Reedy
3c8043d8fa
bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)
...
Import pyshell first in htest to call SetProcessDpiAwareness on Windows
before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()'
undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots,
a unittest before an htest does not require anything more to work right.
Since part of the purpose of human-viewed tests is to determine that
widgets look right, it is important that they look the same for testing
as when running IDLE.
2018-06-27 00:07:30 -04:00
Mark Roseman
42397731d7
bpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)
...
These should have been included in PR 7836.
2018-06-25 21:19:40 -04:00
Tal Einat
2af9f5d334
bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)
...
This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.
The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
2018-06-24 16:35:59 -04:00
Terry Jan Reedy
5ae70f66ff
bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)
...
In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
2018-06-23 17:33:27 -04:00
Terry Jan Reedy
bcd3a1a18d
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
...
Increases coverage by 44%.
2018-06-21 22:19:56 -04:00
Terry Jan Reedy
33c7420e7d
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
...
Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
2018-06-20 22:49:55 -04:00
Terry Jan Reedy
a361e89d5a
bpo-33906: Rename idlelib.windows as window ( #7833 )
...
Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
2018-06-20 21:25:59 -04:00
Terry Jan Reedy
87a927325e
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
...
The revised file compiles, runs, and tests OK. idle_test/README.txt
explains how to use it to create new IDLE test files.
2018-06-20 17:08:31 -04:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
9bb92235f6
bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
2018-06-20 03:42:13 -04:00
Terry Jan Reedy
9af1836664
bpo-33907: Rename an IDLE module and classes. (GH-7810)
...
Fix-up class name duplication in PR #7807 . Combined effect is that
module calltips and its class CallTips are now calltip and Calltip.
In module calltip_w class CallTip is now CalltipWindow.
2018-06-20 02:18:49 -04:00
Terry Jan Reedy
06e2029dfa
bpo-33907: Rename an IDLE module and class. (GH-7807)
...
Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.
2018-06-19 23:00:35 -04:00
Terry Jan Reedy
4d92158f4c
bpo-33855: Still more edits and minimal tests for IDLE (GH-7784)
...
Part 3 of 3, continuing PR #7689 . This covers 14 idlelib modules and their tests,
rpc to zoomheight except for run (already done) and tooltip (being done separately).
2018-06-19 19:12:52 -04:00
Terry Jan Reedy
ea3dc8029a
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)
...
Part 2 of 3. Continues PR #7689 , changeset ee5ef30.
Edit and add tests for 18 modules, help_about to replace and run.
2018-06-18 04:47:59 -04:00
Stéphane Wirtel
9d49f85064
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
...
Make it the same as when one runs 'python'.
2018-06-16 17:20:56 -04:00
Terry Jan Reedy
ee5ef309c7
bpo-33855: Minimally test all IDLE modules. (GH-7689)
...
Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es). Add a test file for all non-startup IDLE modules. Edit existing files and update coverage. This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files.
2018-06-15 18:20:55 -04:00
Terry Jan Reedy
4b704f29f5
bpo-33656: Mention color in idlelib/NEWS.txt entry. ( #7646 )
2018-06-11 16:53:41 -04:00
Terry Jan Reedy
fd88f319a4
bpo-33656: Add enum name for argument of Windows call. (GH-7642)
...
Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
2018-06-11 15:45:27 -04:00
Terry Jan Reedy
800415e3df
bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)
...
On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
unchanged, and a monitor resolution greater than 96 DPI, this should
make text and lines sharper. It should otherwise have no effect.
Using a magnifier, I determined that the improvement comes from horizontal and
lines being better lined up with the monitor pixels. I checked that this call causes
no problem on any Windows buildbot, including the Win7 buildbots. Unlike most
IDLE patches, this one can be easily reverted by users by removing a few lines,
at the top of idlelib/pyshell.py.
2018-06-11 14:14:32 -04:00
Terry Jan Reedy
af4b0130d4
bpo-33610: Update IDLE Code Context doc entry (GH-7597)
...
Users can now click on context lines.
2018-06-10 15:48:41 -04:00
Terry Jan Reedy
b1f690294d
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
2018-06-08 02:28:45 -04:00
Cheryl Sabella
041272b657
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
2018-06-08 01:21:15 -04:00
Cheryl Sabella
b609e687a0
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
2018-06-04 11:58:44 -04:00
Cheryl Sabella
d49dbd9acc
bpo-33664: Scroll IDLE editor text by lines (GH-7351)
...
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
2018-06-04 11:48:21 -04:00
Cheryl Sabella
de6516264e
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
...
The difference from before is that the settings are now on the
Highlights tab instead of the Extensions tab and only change one theme
at a time instead of all themes. The default for light themes is black
on light gray, as before. The default for the IDLE Dark theme is white
on dark gray, which better fits the dark theme.
When one starts IDLE from a console and loads a custom theme without
definitions for 'context', one will see a warning message on the console.
To stop the warning, go to Options => Configure IDLE => Highlights,
select the custom theme if not selected already, select 'Code Context',
and select foreground and background colors.
2018-06-01 21:45:54 -04:00
Cheryl Sabella
29996a1c4e
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
...
Instead of displaying a fixed number of lines, some blank, Code Context
now displays the variable number of actual context lines. When there
are no context lines, it shows a single blank line to indicate that the
feature is turned on.
The Code Context configuration option is changed from 'numlines'
(default 3) to 'maxlines' (default 15) to avoid possible interference
between user settings for the old and new versions of Code Context.
2018-06-01 19:23:00 -04:00
Cheryl Sabella
8506016f90
bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)
2018-05-23 22:18:15 -04:00
Terry Jan Reedy
6b0d09b8f0
bpo-30928: Update idlelib/NEWS.txt. ( #6995 )
2018-05-19 21:38:46 -04:00
Cheryl Sabella
654038d896
bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)
2018-05-19 15:34:03 -04:00
Terry Jan Reedy
d89ca94847
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
2018-05-17 20:38:41 -04:00
Terry Jan Reedy
038b21f2ca
bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. ( #6873 )
2018-05-15 17:41:57 -04:00
Terry Jan Reedy
389a48ede9
bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
...
Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.
2018-05-15 14:20:38 -04:00
Terry Jan Reedy
5ff3a161c8
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
...
In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.
2018-04-30 03:08:01 -04:00
Ville Skyttä
61f82e0e33
Spelling fixes to docs, docstrings, and comments (GH-6374)
2018-04-20 16:08:45 -04:00
Terry Jan Reedy
55966f3a0d
bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)
...
Followup to primary PR for the issue, GH-6344.
2018-04-02 11:18:02 -04:00
Terry Jan Reedy
da58533ac6
bpo-33204: IDLE: consistently color invalid string prefixes ( #6344 )
...
A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently
color as much of the prefix, starting at the right, as is valid.
2018-04-02 01:47:46 -04:00
Serhiy Storchaka
bac2d5ba30
Fix duplicating words words. (GH-6296)
...
Most of them have been added in 3.7.
2018-03-28 22:14:26 +03:00
Terry Jan Reedy
22c82be5df
bpo-32984: IDLE - set __file__ for startup files (GH-5981)
...
Like Python, IDLE optionally runs one startup file in the Shell window
before presenting the first interactive input prompt. For IDLE,
option -s runs a file named in environmental variable IDLESTARTUP or
PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup
file name before running the file and unsets it before the first
prompt. IDLE now does the same when run normally, without the -n
option.
2018-03-05 11:02:46 -05:00