diff options
author | fvogel <fvogelnew1@free.fr> | 2022-04-10 20:05:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2022-04-10 20:05:48 (GMT) |
commit | d2e56779f7f55e9ab87632524ad5c2389e177273 (patch) | |
tree | c8d97d8d1c8b66725d86c8cf403210f789a8ee67 /tests/unixEmbed.test | |
parent | d1eed980cbe2721adb4fed857b96804a955f77dd (diff) | |
download | tk-d2e56779f7f55e9ab87632524ad5c2389e177273.zip tk-d2e56779f7f55e9ab87632524ad5c2389e177273.tar.gz tk-d2e56779f7f55e9ab87632524ad5c2389e177273.tar.bz2 |
More updateWidgets in unixEmbed.test (instead of update idletasks)
Diffstat (limited to 'tests/unixEmbed.test')
-rw-r--r-- | tests/unixEmbed.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unixEmbed.test b/tests/unixEmbed.test index ba441e2..a66d54e 100644 --- a/tests/unixEmbed.test +++ b/tests/unixEmbed.test @@ -1275,9 +1275,9 @@ test unixEmbed-11.1 {focus -force works for embedded toplevels} -constraints { } -body { toplevel .t pack [frame .t.f -container 1 -width 200 -height 200] -fill both - update idletasks + updateWidgets toplevel .embed -use [winfo id .t.f] -bg green - update idletasks + updateWidgets focus -force .t focus -force .embed focus @@ -1294,12 +1294,12 @@ test unixEmbed-11.2 {mouse coordinates in embedded toplevels} -constraints { pack [button .main.b -text "Main Button" \ -command {lappend result ".main.b"}] -padx 30 -pady 30 pack [frame .main.f -container 1 -width 200 -height 200] -fill both - update idletasks + updateWidgets toplevel .embed -use [winfo id .main.f] -bg green pack [button .embed.b -text "Emb Button" \ -command {lappend result ".embed.b"}] -padx 30 -pady 30 wm geometry .main 200x400+100+100 - update idletasks + updateWidgets focus -force .main after 100 set x [expr {[winfo x .main ] + [winfo x .main.b] + 40}] |