mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
The Canvas module has been deprecated for removal in 3.0.
This commit is contained in:
parent
756bc0b722
commit
d5a0985265
3 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,10 @@
|
|||
# NOTE: This module was an experiment and is now obsolete.
|
||||
# It's best to use the Tkinter.Canvas class directly.
|
||||
|
||||
from warnings import warnpy3k
|
||||
warnpy3k("the Canvas module has been removed in Python 3.0", stacklevel=2)
|
||||
del warnpy3k
|
||||
|
||||
from Tkinter import Canvas, _cnfmerge, _flatten
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue