| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
In particular, when running with tk8.6.8, as in PSF 3.9.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f)
Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
|
|
|
|
|
|
|
|
|
| |
AutoCompleteWindow.winconfig_event() (GH-26404)
Since the <Configure> event may occur after the
completion window is gone, catch potential
TclError exceptions when accessing acw.
(cherry picked from commit 4e2e5c1c4f792b4011e4c78d011baea2aee39f1b)
|
|
|
|
|
| |
(cherry picked from commit abc4bd5db91c86b6b74289241378a13bd3a0a5e2)
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
|
|
|
|
|
|
| |
Left click and drag to select lines. With selection, right click for context menu with copy and copy-with-prompts.
Also add copy-with-prompts to the text-box context menu.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
| |
This has happened on some versions of Ubuntu.
|
| |
|
| |
|
| |
|
|
|
|
| |
Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
|
| |
|
|
|
|
|
| |
Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Before, <return> would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, <return> was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The root problem was non-check for hide_event. When user clicks
on autocomplete window (acw), root widget gets focusOut event, then triggers hide_window to
close the acw. It should only be hide when acw is active, and acw didn't
get focus at FocusOut event (this event bind on acw and widget), or when
widget get a ButtonPress event (this event only bind on widget).
MacOS froze after double click on acw because when
doubleclick_event try to hide window at the end, hide_window function
destory whole acw, but tkinter didn't get focus back to widget. So set focus
on widget first, then destory acw.
Windows could not respond on double click event, because of the misbehavior
of Configure event. When acw was shown, tkinter called winconfig
event multiple times. That caused tkinter to not response to double
click event. When on Windows, unbind Configure event first
time get into winconfig_event to prevent multiple call of this event.
|
| |
|
|
|
|
| |
Fixes problem with writing docstrings at lease twice indented.
|
|
|
|
| |
In a few cases, reverse a condition and eliminate a return.
|
|
|
|
| |
Where needed, add minimal tests to cover changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This follows the previous patch that changed idlelib file names.
Class names that matched old module names are not changed.
Change idlelib imports in turtledemo.__main__.
Exception: config-extensions.def. Previously, extension section
names, file names, and class names had to match. Changing section
names would create cross-version conflicts in config-extensions.cfg
(user customizations). Instead map old names to new file names
at point of import in editor.EditorWindow.load_extension.
Patch extensively tested with test_idle, idle_test.htest.py, a custom
import-all test, running IDLE in a console to catch messages,
and testing each menu item. Based on a patch by Al Sweigart.
|
|
|