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
ff36b79c
Kaydet (Commit)
ff36b79c
authored
May 23, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Fixed new Tkinter tests added in issue #21522 with Tk 8.4.
üst
17f9cc07
10cbb1e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
test_widgets.py
Lib/tkinter/test/test_tkinter/test_widgets.py
+13
-6
No files found.
Lib/tkinter/test/test_tkinter/test_widgets.py
Dosyayı görüntüle @
ff36b79c
...
...
@@ -961,12 +961,15 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
self
.
assertEqual
(
v
,
p
.
paneconfigure
(
b
,
k
))
self
.
assertEqual
(
v
[
4
],
p
.
panecget
(
b
,
k
))
def
check_paneconfigure
(
self
,
p
,
b
,
name
,
value
,
expected
):
if
not
self
.
wantobjects
:
def
check_paneconfigure
(
self
,
p
,
b
,
name
,
value
,
expected
,
stringify
=
False
):
conv
=
lambda
x
:
x
if
not
self
.
wantobjects
or
stringify
:
expected
=
str
(
expected
)
if
self
.
wantobjects
and
stringify
:
conv
=
str
p
.
paneconfigure
(
b
,
**
{
name
:
value
})
self
.
assertEqual
(
p
.
paneconfigure
(
b
,
name
)[
4
]
,
expected
)
self
.
assertEqual
(
p
.
panecget
(
b
,
name
),
expected
)
self
.
assertEqual
(
conv
(
p
.
paneconfigure
(
b
,
name
)[
4
])
,
expected
)
self
.
assertEqual
(
conv
(
p
.
panecget
(
b
,
name
)
),
expected
)
def
check_paneconfigure_bad
(
self
,
p
,
b
,
name
,
msg
):
with
self
.
assertRaisesRegex
(
TclError
,
msg
):
...
...
@@ -986,10 +989,12 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
def
test_paneconfigure_height
(
self
):
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'height'
,
10
,
10
)
self
.
check_paneconfigure
(
p
,
b
,
'height'
,
10
,
10
,
stringify
=
tcl_version
<
(
8
,
5
))
self
.
check_paneconfigure_bad
(
p
,
b
,
'height'
,
'bad screen distance "badValue"'
)
@requires_tcl
(
8
,
5
)
def
test_paneconfigure_hide
(
self
):
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'hide'
,
False
,
0
)
...
...
@@ -1022,6 +1027,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
'be a string containing zero or more of '
'n, e, s, and w'
)
@requires_tcl
(
8
,
5
)
def
test_paneconfigure_stretch
(
self
):
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'stretch'
,
'alw'
,
'always'
)
...
...
@@ -1031,7 +1037,8 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
def
test_paneconfigure_width
(
self
):
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'width'
,
10
,
10
)
self
.
check_paneconfigure
(
p
,
b
,
'width'
,
10
,
10
,
stringify
=
tcl_version
<
(
8
,
5
))
self
.
check_paneconfigure_bad
(
p
,
b
,
'width'
,
'bad screen distance "badValue"'
)
...
...
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