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
758c521e
Kaydet (Commit)
758c521e
authored
Kas 02, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19085: Added basic tests for all tkinter widget options.
üst
0e6c66d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
0 deletions
+44
-0
support.py
Lib/tkinter/test/support.py
+39
-0
test_widgets.py
Lib/tkinter/test/test_tkinter/test_widgets.py
+0
-0
test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
+0
-0
widget_tests.py
Lib/tkinter/test/widget_tests.py
+0
-0
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/tkinter/test/support.py
Dosyayı görüntüle @
758c521e
...
@@ -77,3 +77,42 @@ def simulate_mouse_click(widget, x, y):
...
@@ -77,3 +77,42 @@ def simulate_mouse_click(widget, x, y):
widget
.
event_generate
(
'<Motion>'
,
x
=
x
,
y
=
y
)
widget
.
event_generate
(
'<Motion>'
,
x
=
x
,
y
=
y
)
widget
.
event_generate
(
'<ButtonPress-1>'
,
x
=
x
,
y
=
y
)
widget
.
event_generate
(
'<ButtonPress-1>'
,
x
=
x
,
y
=
y
)
widget
.
event_generate
(
'<ButtonRelease-1>'
,
x
=
x
,
y
=
y
)
widget
.
event_generate
(
'<ButtonRelease-1>'
,
x
=
x
,
y
=
y
)
import
_tkinter
tcl_version
=
tuple
(
map
(
int
,
_tkinter
.
TCL_VERSION
.
split
(
'.'
)))
def
requires_tcl
(
*
version
):
return
unittest
.
skipUnless
(
tcl_version
>=
version
,
'requires Tcl version >= '
+
'.'
.
join
(
map
(
str
,
version
)))
units
=
{
'c'
:
72
/
2.54
,
# centimeters
'i'
:
72
,
# inches
'm'
:
72
/
25.4
,
# millimeters
'p'
:
1
,
# points
}
def
pixels_conv
(
value
):
return
float
(
value
[:
-
1
])
*
units
[
value
[
-
1
:]]
def
tcl_obj_eq
(
actual
,
expected
):
if
actual
==
expected
:
return
True
if
isinstance
(
actual
,
_tkinter
.
Tcl_Obj
):
if
isinstance
(
expected
,
str
):
return
str
(
actual
)
==
expected
if
isinstance
(
actual
,
tuple
):
if
isinstance
(
expected
,
tuple
):
return
(
len
(
actual
)
==
len
(
expected
)
and
all
(
tcl_obj_eq
(
act
,
exp
)
for
act
,
exp
in
zip
(
actual
,
expected
)))
return
False
def
widget_eq
(
actual
,
expected
):
if
actual
==
expected
:
return
True
if
isinstance
(
actual
,
(
str
,
tkinter
.
Widget
)):
if
isinstance
(
expected
,
(
str
,
tkinter
.
Widget
)):
return
str
(
actual
)
==
str
(
expected
)
return
False
Lib/tkinter/test/test_tkinter/test_widgets.py
0 → 100644
Dosyayı görüntüle @
758c521e
This diff is collapsed.
Click to expand it.
Lib/tkinter/test/test_ttk/test_widgets.py
Dosyayı görüntüle @
758c521e
This diff is collapsed.
Click to expand it.
Lib/tkinter/test/widget_tests.py
0 → 100644
Dosyayı görüntüle @
758c521e
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
758c521e
...
@@ -15,6 +15,11 @@ Library
...
@@ -15,6 +15,11 @@ Library
- Issue #19435: Fix directory traversal attack on CGIHttpRequestHandler.
- Issue #19435: Fix directory traversal attack on CGIHttpRequestHandler.
Tests
-----
- Issue #19085: Added basic tests for all tkinter widget options.
What'
s
New
in
Python
3.3.3
release
candidate
1
?
What'
s
New
in
Python
3.3.3
release
candidate
1
?
===============================================
===============================================
...
...
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