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
1a901cc9
Kaydet (Commit)
1a901cc9
authored
Tem 25, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22061: Add deprecation warnings in empty obsolete methods.
üst
5c1b8f3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
__init__.py
Lib/tkinter/__init__.py
+9
-2
No files found.
Lib/tkinter/__init__.py
Dosyayı görüntüle @
1a901cc9
...
@@ -421,7 +421,10 @@ class Misc:
...
@@ -421,7 +421,10 @@ class Misc:
+
_flatten
(
args
)
+
_flatten
(
list
(
kw
.
items
())))
+
_flatten
(
args
)
+
_flatten
(
list
(
kw
.
items
())))
def
tk_menuBar
(
self
,
*
args
):
def
tk_menuBar
(
self
,
*
args
):
"""Do not use. Needed in Tk 3.6 and earlier."""
"""Do not use. Needed in Tk 3.6 and earlier."""
pass
# obsolete since Tk 4.0
# obsolete since Tk 4.0
import
warnings
warnings
.
warn
(
'tk_menuBar() does nothing and will be removed in 3.6'
,
DeprecationWarning
,
stacklevel
=
2
)
def
wait_variable
(
self
,
name
=
'PY_VAR'
):
def
wait_variable
(
self
,
name
=
'PY_VAR'
):
"""Wait until the variable is modified.
"""Wait until the variable is modified.
...
@@ -2674,7 +2677,11 @@ class Menu(Widget):
...
@@ -2674,7 +2677,11 @@ class Menu(Widget):
selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
Widget
.
__init__
(
self
,
master
,
'menu'
,
cnf
,
kw
)
Widget
.
__init__
(
self
,
master
,
'menu'
,
cnf
,
kw
)
def
tk_bindForTraversal
(
self
):
def
tk_bindForTraversal
(
self
):
pass
# obsolete since Tk 4.0
# obsolete since Tk 4.0
import
warnings
warnings
.
warn
(
'tk_bindForTraversal() does nothing and '
'will be removed in 3.6'
,
DeprecationWarning
,
stacklevel
=
2
)
def
tk_mbPost
(
self
):
def
tk_mbPost
(
self
):
self
.
tk
.
call
(
'tk_mbPost'
,
self
.
_w
)
self
.
tk
.
call
(
'tk_mbPost'
,
self
.
_w
)
def
tk_mbUnpost
(
self
):
def
tk_mbUnpost
(
self
):
...
...
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