Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e271ca78
Commit
e271ca78
authored
Jul 22, 2018
by
Serhiy Storchaka
Committed by
GitHub
Jul 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34189: Add simple tests for new Tk widget options. (GH-8396)
parent
cb9c299a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
Lib/tkinter/test/test_tkinter/test_widgets.py
Lib/tkinter/test/test_tkinter/test_widgets.py
+25
-2
No files found.
Lib/tkinter/test/test_tkinter/test_widgets.py
View file @
e271ca78
...
@@ -703,7 +703,7 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -703,7 +703,7 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
'disabledforeground'
,
'exportselection'
,
'disabledforeground'
,
'exportselection'
,
'font'
,
'foreground'
,
'height'
,
'font'
,
'foreground'
,
'height'
,
'highlightbackground'
,
'highlightcolor'
,
'highlightthickness'
,
'highlightbackground'
,
'highlightcolor'
,
'highlightthickness'
,
'listvariable'
,
'relief'
,
'
justify'
,
'
listvariable'
,
'relief'
,
'selectbackground'
,
'selectborderwidth'
,
'selectforeground'
,
'selectbackground'
,
'selectborderwidth'
,
'selectforeground'
,
'selectmode'
,
'setgrid'
,
'state'
,
'selectmode'
,
'setgrid'
,
'state'
,
'takefocus'
,
'width'
,
'xscrollcommand'
,
'yscrollcommand'
,
'takefocus'
,
'width'
,
'xscrollcommand'
,
'yscrollcommand'
,
...
@@ -717,6 +717,10 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -717,6 +717,10 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
self
.
checkEnumParam
(
widget
,
'activestyle'
,
self
.
checkEnumParam
(
widget
,
'activestyle'
,
'dotbox'
,
'none'
,
'underline'
)
'dotbox'
,
'none'
,
'underline'
)
@
requires_tcl
(
8
,
6
,
5
)
def
test_justify
(
self
):
AbstractWidgetTest
.
test_justify
(
self
)
def
test_listvariable
(
self
):
def
test_listvariable
(
self
):
widget
=
self
.
create
()
widget
=
self
.
create
()
var
=
tkinter
.
DoubleVar
(
self
.
root
)
var
=
tkinter
.
DoubleVar
(
self
.
root
)
...
@@ -951,7 +955,9 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -951,7 +955,9 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
OPTIONS
=
(
OPTIONS
=
(
'background'
,
'borderwidth'
,
'cursor'
,
'background'
,
'borderwidth'
,
'cursor'
,
'handlepad'
,
'handlesize'
,
'height'
,
'handlepad'
,
'handlesize'
,
'height'
,
'opaqueresize'
,
'orient'
,
'relief'
,
'opaqueresize'
,
'orient'
,
'proxybackground'
,
'proxyborderwidth'
,
'proxyrelief'
,
'relief'
,
'sashcursor'
,
'sashpad'
,
'sashrelief'
,
'sashwidth'
,
'sashcursor'
,
'sashpad'
,
'sashrelief'
,
'sashwidth'
,
'showhandle'
,
'width'
,
'showhandle'
,
'width'
,
)
)
...
@@ -978,6 +984,23 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -978,6 +984,23 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
widget
=
self
.
create
()
widget
=
self
.
create
()
self
.
checkBooleanParam
(
widget
,
'opaqueresize'
)
self
.
checkBooleanParam
(
widget
,
'opaqueresize'
)
@
requires_tcl
(
8
,
6
,
5
)
def
test_proxybackground
(
self
):
widget
=
self
.
create
()
self
.
checkColorParam
(
widget
,
'proxybackground'
)
@
requires_tcl
(
8
,
6
,
5
)
def
test_proxyborderwidth
(
self
):
widget
=
self
.
create
()
self
.
checkPixelsParam
(
widget
,
'proxyborderwidth'
,
0
,
1.3
,
2.9
,
6
,
-
2
,
'10p'
,
conv
=
noconv
)
@
requires_tcl
(
8
,
6
,
5
)
def
test_proxyrelief
(
self
):
widget
=
self
.
create
()
self
.
checkReliefParam
(
widget
,
'proxyrelief'
)
def
test_sashcursor
(
self
):
def
test_sashcursor
(
self
):
widget
=
self
.
create
()
widget
=
self
.
create
()
self
.
checkCursorParam
(
widget
,
'sashcursor'
)
self
.
checkCursorParam
(
widget
,
'sashcursor'
)
...
...
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