summaryrefslogtreecommitdiffstats
path: root/Lib/turtledemo/__main__.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-120633: Move scrollbar and remove tear-off menus in turtledemo ↵Miss Islington (bot)2024-06-191-4/+4
| | | | | | | | | (GH-120634) (#120725) gh-120633: Move scrollbar and remove tear-off menus in turtledemo (GH-120634) (cherry picked from commit 89f7208f672be635e923f04c19a7480eb8eb414c) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) ↵Miss Islington (bot)2024-05-211-2/+4
| | | | | | | | | | | windows blurry (GH-119175) (#119289) gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175) ------ (cherry picked from commit 538ed5e4818aa0d0aa759634e8bfa23e317434a1) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
* gh-111092: Make turtledemo run without default root enabled (#111093)Terry Jan Reedy2023-10-201-1/+1
| | | | Add missing 'root' argument to PanedWindow call. Other root children already have it.
* Rewrite the turtledemo makeGraphFrame method (#104224)Terry Jan Reedy2023-05-061-10/+14
| | | | | | | Replace `self._canvas` and `self.scanvas`, both bound to `canvas`, with `self.canvas, which is accessed in other methods. Replace `_s_` with `screen` and `_s_._canvas` with `canvas`. Add a comment explaining the unorthodox use of function turtle.Screen and singleton class turtle._Screen.
* bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons ↵Terry Jan Reedy2021-05-291-16/+28
| | | | | | (GH-26448) On macOS, tk defers to system setting for button background when in normal state. Give turtledemo button text a color that works on either light or dark background.
* bpo-40431: Fix syntax typo in turtledemo (GH-19777)Miro Hrončok2020-04-291-1/+1
| | | | | | *** File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275 bg="#d00" if clear == NORMAL else"#fca") ^ SyntaxError: invalid string prefix
* Mark files as executable that are meant as scripts. (GH-15354)Greg Price2019-09-091-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This is the converse of GH-15353 -- in addition to plenty of scripts in the tree that are marked with the executable bit (and so can be directly executed), there are a few that have a leading `#!` which could let them be executed, but it doesn't do anything because they don't have the executable bit set. Here's a command which finds such files and marks them. The first line finds files in the tree with a `#!` line *anywhere*; the next-to-last step checks that the *first* line is actually of that form. In between we filter out files that already have the bit set, and some files that are meant as fragments to be consumed by one or another kind of preprocessor. $ git grep -l '^#!' \ | grep -vxFf <( \ git ls-files --stage \ | perl -lane 'print $F[3] if (!/^100644/)' \ ) \ | grep -ve '\.in$' -e '^Doc/includes/' \ | while read f; do head -c2 "$f" | grep -qxF '#!' \ && chmod a+x "$f"; \ done
* bpo-32297: Few misspellings found in Python source code comments. (#4803)Mike2017-12-141-1/+1
| | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
* bpo-32155: Bugfixes found by flake8 F841 warnings (#4608)Victor Stinner2017-11-281-1/+1
| | | | | | | | | | | * distutils.config: Use the PyPIRCCommand.realm attribute if set * turtledemo: wait until macOS osascript command completes to not create a zombie process * Tools/scripts/treesync.py: declare 'default_answer' and 'create_files' as globals to modify them with the command line arguments. Previously, -y, -n, -f and -a options had no effect. flake8 warning: "F841 local variable 'p' is assigned to but never used".
* Issue #27117: Make colorizer htest and turtledemo work with dark theme.Terry Jan Reedy2016-05-291-1/+4
| | | | Factor out code for configuring text widget colors to a new function.
* Issue #24225: Within idlelib files, update idlelib module names.Terry Jan Reedy2016-05-281-3/+3
| | | | | | | | | | | | | | | | 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.
* Removed unused imports.Serhiy Storchaka2016-04-241-1/+0
|
* Issue #6639: Module-level turtle functions no longer raise TclError afterSerhiy Storchaka2015-02-221-0/+4
|\ | | | | | | closing the window.
| * Issue #6639: Module-level turtle functions no longer raise TclError afterSerhiy Storchaka2015-02-221-0/+4
|/ | | | closing the window.
* De-'colour'ize stdlib except for idlelib.configDialog.Terry Jan Reedy2014-10-091-1/+1
| | | | Tweak docstrigs and comments in affected functions in idlelib.configHandler.
* Issue #21933: Make Control-Mousewhell only change font size and not also scroll.Terry Jan Reedy2014-09-051-19/+21
| | | | Original patch by Serhiy Storchaka.
* Issue #22051: remove unneeded reload that allowed bad code.Terry Jan Reedy2014-09-031-2/+0
|
* Issue #21933: Users can now change the font size for example code.Terry Jan Reedy2014-09-031-22/+71
| | | | Original patch by Lita Cho.
* Issue #22065: Remove the now unsed configGUI menu parameter and arguments.Terry Jan Reedy2014-08-271-10/+8
|
* Issue #22065: Menus, unlike Menubottons, do not have a state option.Terry Jan Reedy2014-08-271-7/+6
| | | | | Since a new demo can now be loaded while one is running, adjust loadfile to do the same cleanup as stopIt.
* Issue #22065: Update turtledemo menu creation; don't use obsolete Menubutton.Terry Jan Reedy2014-08-151-27/+22
|
* Issue #10291: Backport 004fe3449193 with a few changes due to 22095.Terry Jan Reedy2014-08-151-6/+89
| | | | Will forward port 22095 changes separately.
* Issue #17172: Add the ability to run turtledemo from Idle.Terry Jan Reedy2014-07-291-0/+16
| | | | | Make turtledemo start as active on Mac even when run with subprocess. Patch by Ramchandra Apt, Lita Cho, and Ned Daily.
* Modernize turtledemo with conditional expressions; remove duplicate line.Terry Jan Reedy2014-07-271-19/+6
|
* Issue #22061: remove call of useless function slated for removal.Terry Jan Reedy2014-07-251-1/+0
|
* Issue #22053: Make help work, after previous patch for this issue disabled itTerry Jan Reedy2014-07-251-17/+9
| | | | by removing global 'demo'. Refactor and remove duplicate code.
* Issue #22053: Cleanup turtledemo start and stop and fix debug shutdown warning.Terry Jan Reedy2014-07-231-21/+5
|
* Issue #21597: Turtledemo text pane can now be widened to view or copy completeTerry Jan Reedy2014-07-231-68/+80
| | | | | | lines or narrowed for small screens. Issie #19132: Turtledemo buttons no longer disappear when window is shrun. Patch mostly by Lita Cho (21597) using idea from patch by Jan Kanis (18132).
* Issue # 17177: Stop using imp in turtledemoBrett Cannon2013-06-151-1/+1
|
* Add the missing __main__.py in the turtledemo package. It seems to have ↵Georg Brandl2010-12-301-0/+266
been lost during some mass rename action (r86095).