Import Tk 8.6.6 (as of svn r86089)

This commit is contained in:
Zachary Ware
2017-05-22 16:13:37 -05:00
parent d239d63057
commit b1c28856bb
899 changed files with 545127 additions and 0 deletions

25
tests/ttk/layout.test Normal file
View File

@@ -0,0 +1,25 @@
package require Tk 8.5
package require tcltest ; namespace import -force tcltest::*
loadTestedCommands
test layout-1.1 "Size computations for mixed-orientation layouts" -body {
ttk::style theme use default
set block [image create photo -width 10 -height 10]
ttk::style element create block image $block
ttk::style layout Blocks {
border -children { block } -side left
border -children { block } -side top
border -children { block } -side bottom
}
ttk::style configure Blocks -borderwidth 1 -relief raised
ttk::button .b -style Blocks
pack .b -expand true -fill both
list [winfo reqwidth .b] [winfo reqheight .b]
} -cleanup { destroy .b } -result [list 24 24]
tcltest::cleanupTests