| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
These should have been included in PR 7836.
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
|
|
|
| |
Increases coverage by 44%.
|
|
|
|
|
| |
Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
|
|
|
|
| |
Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
|
|
|
|
| |
The revised file compiles, runs, and tests OK. idle_test/README.txt
explains how to use it to create new IDLE test files.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
| |
Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.
|
|
|
|
|
| |
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).
|
|
|
|
| |
Part 2 of 3. Continues PR #7689, changeset ee5ef30.
Edit and add tests for 18 modules, help_about to replace and run.
|
|
|
| |
Make it the same as when one runs 'python'.
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
Users can now click on context lines.
|
| |
|
|
|
|
| |
(GH-7411)
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
| |
Followup to primary PR for the issue, GH-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.
|
|
|
| |
Most of them have been added in 3.7.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
The new code also runs faster.
|
| |
|
|
|
| |
Adjust tests and user modules to match.
|
|
|
| |
dump is similar to print but less flexible. lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed. get_last_open_bracket_pos is never called.
|
|
|
|
| |
There are no code changes other than comments and docstrings.
|
|
|
|
|
| |
Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.
|
|
|
|
|
|
|
|
| |
(GH-5639)
GUI test test_file_buttons() only looks at initial ascii-only lines,
but failed on systems where open() defaults to 'ascii' because
readline() internally reads and decodes far enough ahead to encounter
a non-ascii character in CREDITS.txt.
|
| |
|
|
|
| |
Add new entries to the widget list.
|
|
|
| |
Fix typos found by codespell in docs, docstrings, and comments.
|
| |
|
| |
|