New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
name conflict in ScrolledCanvas.__init__() in Lib/turtle.py #48366
Comments
In ScrolledCanvas.__init__() there's a name conflict with a methodname Regards, |
This patch applies to Python 2.6 as well |
I'd like to see this patch accepted and done for Python 2.6.1 and (at To demonstrate the nature of this issue (and also the nuisance it could import turtle
s = turtle.Screen()
def changecolor():
s.bgcolor(1.0, 0.5) # needs 3 floats as arguments
s.ontimer(changecolor, 1000)
turtle.mainloop() This should create an error message like this: Instead it results in: Traceback (most recent call last):
File "C:\_\provoke_error.py", line 11, in <module>
turtle.mainloop()
File "C:\Python26\lib\lib-tk\Tkinter.py", line 325, in mainloop
_default_root.tk.mainloop(n)
File "C:\Python26\lib\lib-tk\Tkinter.py", line 1414, in __call__
self.widget._report_exception()
File "C:\Python26\lib\lib-tk\Tkinter.py", line 1175, in _report_exception
root = self._root()
AttributeError: _Root instance has no __call__ method because the _root() method defined in line 1105 of Tkinter.py is With the proposed patch applied, the above script produces the correct Regards, Gregor |
Thanks for the patch. Committed as r67279, r67280, and r67281. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: