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
e9597762
Kaydet (Commit)
e9597762
authored
Şub 19, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
üst
d5c8ce7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
__init__.py
Lib/tkinter/__init__.py
+18
-11
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/tkinter/__init__.py
Dosyayı görüntüle @
e9597762
...
...
@@ -1339,6 +1339,21 @@ class Misc:
args
=
args
+
(
col2
,
row2
)
return
self
.
_getints
(
self
.
tk
.
call
(
*
args
))
or
None
bbox
=
grid_bbox
def
_gridconvvalue
(
self
,
value
):
if
isinstance
(
value
,
(
str
,
_tkinter
.
Tcl_Obj
)):
try
:
svalue
=
str
(
value
)
if
not
svalue
:
return
None
elif
'.'
in
svalue
:
return
getdouble
(
svalue
)
else
:
return
getint
(
svalue
)
except
ValueError
:
pass
return
value
def
_grid_configure
(
self
,
command
,
index
,
cnf
,
kw
):
"""Internal function."""
if
isinstance
(
cnf
,
str
)
and
not
kw
:
...
...
@@ -1357,22 +1372,14 @@ class Misc:
for
i
in
range
(
0
,
len
(
words
),
2
):
key
=
words
[
i
][
1
:]
value
=
words
[
i
+
1
]
if
not
value
:
value
=
None
elif
'.'
in
str
(
value
):
value
=
getdouble
(
value
)
else
:
value
=
getint
(
value
)
dict
[
key
]
=
value
dict
[
key
]
=
self
.
_gridconvvalue
(
value
)
return
dict
res
=
self
.
tk
.
call
(
(
'grid'
,
command
,
self
.
_w
,
index
)
+
options
)
if
len
(
options
)
==
1
:
if
not
res
:
return
None
# In Tk 7.5, -width can be a float
if
'.'
in
res
:
return
getdouble
(
res
)
return
getint
(
res
)
return
self
.
_gridconvvalue
(
res
)
def
grid_columnconfigure
(
self
,
index
,
cnf
=
{},
**
kw
):
"""Configure column INDEX of a grid.
...
...
Misc/NEWS
Dosyayı görüntüle @
e9597762
...
...
@@ -20,6 +20,9 @@ Core and Builtins
Library
-------
- Issue #20635: Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
- Issue #19612: On Windows, subprocess.Popen.communicate() now ignores
OSError(22, '
Invalid
argument
') when writing input data into stdin, whereas
the process already exited.
...
...
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