This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Tkinter and turtle graphics fill differs between Windows and *nix
Type: behavior Stage: needs patch
Components: Documentation, Tkinter Versions: Python 3.8, Python 3.7, Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: John Simmons, docs@python, serhiy.storchaka, terry.reedy, willingc
Priority: normal Keywords:

Created on 2017-02-14 19:22 by John Simmons, last changed 2022-04-11 14:58 by admin.

Messages (4)
msg287794 - (view) Author: John Simmons (John Simmons) Date: 2017-02-14 19:22
When I run the demo program on the library 24.1 documentation page to draw the star, it colors the entire star yellow, not just the parts that are show yellow on the page.  This appears to be a behavior change.  This is running on a Windows 7 or 10 machine with Python 3.2, 3.5, or 3.6.

I have not tried this program at home, but when I run a similar program that draws and then fills 10 overlapping circles, my Linux Mint 17.3 computer at home, running IDLE in Python 3.4, fills the "interior" points inside and odd number of circles but does not fill the "exterior" points inside an even number of circles.  This appears to be the behavior shown on documentation page 24.1.  I would like to know what is intended to be the correct behavior and why the implementations differ.
msg288050 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-02-18 01:32
I believe that there is a known difference between tk on Windows and linux with respect to filling of even and odd areas.  If I understand correctly, you saw one behavior on Windows and the other on Linux.  If so, this is not a bug in tkinter.
msg319754 - (view) Author: Carol Willing (willingc) * (Python committer) Date: 2018-06-16 15:44
The next action for this issue would be to run the demo listed on Python 3.7 and report the results back here. We can then document expected behavior if it differs.
msg319783 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-06-16 20:14
Behavior has not changed.  It is a legitimate doc issue for both tkinter and turtle.

The turtle intro,, currently 24.1.1. says nothing about the sidebar and image.  I think there should be a short paragraph added, which includes "The image was drawn on Linux.  On Windows, the star will be filled in solid." 

The filling doc,, should also have a note.

If you do a PR, I will review.

The tkinter docs should be handled separately.
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73746
2018-06-16 20:14:29terry.reedysetassignee: docs@python

components: + Documentation
title: Turtle graphics fill behavior differs between versions -> Tkinter and turtle graphics fill differs between Windows and *nix
nosy: + docs@python
versions: + Python 3.7, Python 3.8, - Python 3.5
messages: + msg319783
stage: needs patch
2018-06-16 15:44:34willingcsetnosy: + willingc
messages: + msg319754
2017-02-18 01:32:45terry.reedysetnosy: + terry.reedy, serhiy.storchaka
messages: + msg288050
2017-02-14 19:22:08John Simmonscreate