I have written some applications using Tk.
When displaying dialogs, the window appears immediately, but the display of the contents is delayed about a second.

I tested this on Linux using KDE, KDE2 and enlightenment as windowmanagers.

A test with Perl/Tk running on AIX and Exceed running on a NT machine showed no delay.

You can test it by yourself with:

perl -MTk -e 'tkinit->Dialog()->Show'
This will bring up a dialog window with an 'Ok' button. The display of the button will be delayed on KDE and enlightenment.

Any idea what's causing the delay and what you can do against it?


In reply to Why is the display of the contents of a TK Dialog delayed by busunsl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.