Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
a966c6fd
Kaydet (Commit)
a966c6fd
authored
Mar 21, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #3035: Unused functions from tkinter are marked as pending peprecated.
üst
04fb08f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
__init__.py
Lib/tkinter/__init__.py
+24
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/tkinter/__init__.py
Dosyayı görüntüle @
a966c6fd
...
...
@@ -34,10 +34,14 @@ import sys
if
sys
.
platform
==
"win32"
:
# Attempt to configure Tcl/Tk without requiring PATH
from
tkinter
import
_fix
import
warnings
import
_tkinter
# If this fails your Python may not be configured for Tk
TclError
=
_tkinter
.
TclError
from
tkinter.constants
import
*
wantobjects
=
1
TkVersion
=
float
(
_tkinter
.
TK_VERSION
)
...
...
@@ -2118,25 +2122,45 @@ class Button(Widget):
"""
return
self
.
tk
.
call
(
self
.
_w
,
'invoke'
)
# Indices:
# XXX I don't like these -- take them away
def
AtEnd
():
warnings
.
warn
(
"tkinter.AtEnd will be removed in 3.5"
,
PendingDeprecationWarning
,
stacklevel
=
2
)
return
'end'
def
AtInsert
(
*
args
):
warnings
.
warn
(
"tkinter.AtInsert will be removed in 3.5"
,
PendingDeprecationWarning
,
stacklevel
=
2
)
s
=
'insert'
for
a
in
args
:
if
a
:
s
=
s
+
(
' '
+
a
)
return
s
def
AtSelFirst
():
warnings
.
warn
(
"tkinter.AtSelFirst will be removed in 3.5"
,
PendingDeprecationWarning
,
stacklevel
=
2
)
return
'sel.first'
def
AtSelLast
():
warnings
.
warn
(
"tkinter.AtSelLast will be removed in 3.5"
,
PendingDeprecationWarning
,
stacklevel
=
2
)
return
'sel.last'
def
At
(
x
,
y
=
None
):
warnings
.
warn
(
"tkinter.At will be removed in 3.5"
,
PendingDeprecationWarning
,
stacklevel
=
2
)
if
y
is
None
:
return
'@
%
r'
%
(
x
,)
else
:
return
'@
%
r,
%
r'
%
(
x
,
y
)
class
Canvas
(
Widget
,
XView
,
YView
):
"""Canvas widget to display graphical elements like lines or text."""
def
__init__
(
self
,
master
=
None
,
cnf
=
{},
**
kw
):
...
...
Misc/NEWS
Dosyayı görüntüle @
a966c6fd
...
...
@@ -30,6 +30,8 @@ Core and Builtins
Library
-------
-
Issue
#
3035
:
Unused
functions
from
tkinter
are
marked
as
pending
peprecated
.
-
Issue
#
12757
:
Fix
the
skipping
of
doctests
when
python
is
run
with
-
OO
so
that
it
works
in
unittest
's verbose mode as well as non-verbose mode.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment