Re: Tk does not generate my virtual event...
- From: "Donal K. Fellows" <donal.k.fellows@xxxxxxxxxxxxxxxx>
- Date: Tue, 01 May 2012 05:01:39 +0100
On 30/04/2012 22:19, Joe English wrote:
Possible solution: depends on the circumstances. Note that
none of [update], [update idletasks], [event generate ... -when tail],
[after 0 [list event generate ...]], or [after idle ...]
will do the trick. The only way to tell when a widget has
*really* been created is to wait for the first <Configure>
event (and there are corner cases where even *that* can fail!)
What are those corner cases?
I know that other possibilities include waiting for <Visibility>, <Map>
or <Expose>. However, <Visibility> is only issued on X11, I'd suspect
that <Map> would have similar problems to <Configure>, and <Expose>
might wait a bit too long unless the window really is bound for display
(and you can't [bind] it before 8.4).
Donal.
.
- Follow-Ups:
- Re: Tk does not generate my virtual event...
- From: Joe English
- Re: Tk does not generate my virtual event...
- References:
- Re: Tk does not generate my virtual event...
- From: Joe English
- Re: Tk does not generate my virtual event...
- Prev by Date: Re: Help using fileevent for updating UI with xcopy command output
- Next by Date: Re: Help using fileevent for updating UI with xcopy command output
- Previous by thread: Re: Tk does not generate my virtual event...
- Next by thread: Re: Tk does not generate my virtual event...
- Index(es):
Relevant Pages
|