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
d8e08067
Kaydet (Commit)
d8e08067
authored
May 29, 2011
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X. (Patch by Ronald Oussoren)
üst
65f7db3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
+16
-4
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/tkinter/test/test_ttk/test_widgets.py
Dosyayı görüntüle @
d8e08067
...
...
@@ -3,6 +3,7 @@ import tkinter
import
os
from
tkinter
import
ttk
from
test.support
import
requires
,
run_unittest
import
sys
import
tkinter.test.support
as
support
from
tkinter.test.test_ttk.test_functions
import
MockTclObj
,
MockStateSpec
...
...
@@ -561,11 +562,19 @@ class NotebookTest(unittest.TestCase):
self
.
nb
.
pack
()
self
.
nb
.
wait_visibility
()
self
.
assertEqual
(
self
.
nb
.
tab
(
'@5,5'
),
self
.
nb
.
tab
(
'current'
))
if
sys
.
platform
==
'darwin'
:
tb_idx
=
"@20,5"
else
:
tb_idx
=
"@5,5"
self
.
assertEqual
(
self
.
nb
.
tab
(
tb_idx
),
self
.
nb
.
tab
(
'current'
))
for
i
in
range
(
5
,
100
,
5
):
if
self
.
nb
.
tab
(
'@
%
d, 5'
%
i
,
text
=
None
)
==
'a'
:
break
try
:
if
self
.
nb
.
tab
(
'@
%
d, 5'
%
i
,
text
=
None
)
==
'a'
:
break
except
tkinter
.
TclError
:
pass
else
:
self
.
fail
(
"Tab with text 'a' not found"
)
...
...
@@ -722,7 +731,10 @@ class NotebookTest(unittest.TestCase):
self
.
nb
.
enable_traversal
()
self
.
nb
.
focus_force
()
support
.
simulate_mouse_click
(
self
.
nb
,
5
,
5
)
self
.
nb
.
event_generate
(
'<Alt-a>'
)
if
sys
.
platform
==
'darwin'
:
self
.
nb
.
event_generate
(
'<Option-a>'
)
else
:
self
.
nb
.
event_generate
(
'<Alt-a>'
)
self
.
assertEqual
(
self
.
nb
.
select
(),
str
(
self
.
child1
))
...
...
Misc/NEWS
Dosyayı görüntüle @
d8e08067
...
...
@@ -770,6 +770,9 @@ Extension Modules
Tests
-----
-
Issue
#
10736
:
Fix
test_ttk
test_widgets
failures
with
Cocoa
Tk
8.5.9
on
Mac
OS
X
.
(
Patch
by
Ronald
Oussoren
)
-
Issue
#
12180
:
Fixed
a
few
remaining
errors
in
test_packaging
when
no
threading
.
...
...
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