- wait for the widget to be displayed before doing the delay that
[imager-screenshot.git] / t / 30tkx11.t
index 1b896b9..5f29a85 100644 (file)
@@ -29,6 +29,7 @@ plan tests => 2;
 
 my ($im_mw, $im_label);
 my $label = $mw->Label(-text => "test: $0")->pack;
+$label->waitVisibility;
 $mw->after(100 =>
            sub {
              $im_mw = screenshot(widget => $mw, decor => 1)