From d2e56779f7f55e9ab87632524ad5c2389e177273 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 10 Apr 2022 20:05:48 +0000 Subject: More updateWidgets in unixEmbed.test (instead of update idletasks) --- tests/unixEmbed.test | 8 ++++---- 1 file 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}] -- cgit v0.12