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
2e208b7d
Kaydet (Commit)
2e208b7d
authored
May 16, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
and tk_bindForTraversal().
üst
7c3ac2d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
3.6.rst
Doc/whatsnew/3.6.rst
+4
-0
__init__.py
Lib/tkinter/__init__.py
+0
-12
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/whatsnew/3.6.rst
Dosyayı görüntüle @
2e208b7d
...
...
@@ -489,6 +489,10 @@ API and Feature Removals
:mod:`traceback` module. They were undocumented methods deprecated since
Python 3.2 and equivalent functionality is available from private methods.
* The ``tk_menuBar()`` and ``tk_bindForTraversal()`` dummy methods in
:mod:`tkinter` widget classes were removed (corresponding Tk commands
were obsolete since Tk 4.0).
Porting to Python 3.6
=====================
...
...
Lib/tkinter/__init__.py
Dosyayı görüntüle @
2e208b7d
...
...
@@ -468,12 +468,6 @@ class Misc:
disabledForeground, insertBackground, troughColor."""
self
.
tk
.
call
((
'tk_setPalette'
,)
+
_flatten
(
args
)
+
_flatten
(
list
(
kw
.
items
())))
def
tk_menuBar
(
self
,
*
args
):
"""Do not use. Needed in Tk 3.6 and earlier."""
# 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'
):
"""Wait until the variable is modified.
...
...
@@ -2705,12 +2699,6 @@ class Menu(Widget):
def
tk_popup
(
self
,
x
,
y
,
entry
=
""
):
"""Post the menu at position X,Y with entry ENTRY."""
self
.
tk
.
call
(
'tk_popup'
,
self
.
_w
,
x
,
y
,
entry
)
def
tk_bindForTraversal
(
self
):
# obsolete since Tk 4.0
import
warnings
warnings
.
warn
(
'tk_bindForTraversal() does nothing and '
'will be removed in 3.6'
,
DeprecationWarning
,
stacklevel
=
2
)
def
activate
(
self
,
index
):
"""Activate entry at INDEX."""
self
.
tk
.
call
(
self
.
_w
,
'activate'
,
index
)
...
...
Misc/NEWS
Dosyayı görüntüle @
2e208b7d
...
...
@@ -280,6 +280,9 @@ Core and Builtins
Library
-------
-
Issue
#
27031
:
Removed
dummy
methods
in
Tkinter
widget
classes
:
tk_menuBar
()
and
tk_bindForTraversal
().
-
Issue
#
14132
:
Fix
urllib
.
request
redirect
handling
when
the
target
only
has
a
query
string
.
Original
fix
by
J
á
n
Janech
.
...
...
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