Re: Is PTK a dead end? Or [ UpdateWrapper woes ]

Michael Higgins <[email protected]> Tue, 30 Oct 2007 13:36:21 -0700
Newsgroups gmane.comp.lang.perl.tk
Organization The Banfield Group, LLC
Message-ID <[email protected]>
On Mon, 29 Oct 2007 18:13:01 -0400
Todd Littlefield <[email protected]> wrote:

> What exactly needs 'timing hacks' in order to work properly.  I have 

Well, the only workaround to the UpdateWrapper errors was to 'after, 500 $mw-> a widget that fails to pack. Do I know what that does? Not really. Seems like a timing hack.

> plenty of scripts
> that work on both Linux and Windows without any problems. 

Good news, that.

> Tk is event 
> driven
> not time based...  If you could provide an example, it might make things 
> clearer.

#$mw->deiconify; Works, but something steals focus from the app

$mw->after(500,sub{$mw->deiconify}) Works, focus stays with the app

The first code doesn't "dwim", or seem to work as intended. Why the second method does is the question.

> 
> In the one line you provided earlier it seemed you were just trying to 
> restore
> the main window from the Windows taskbar.  Why was it iconified?  Normally
> the Tk windows appear in the normal, non-iconified state.

I always iconify/withdraw my $mw on startup so everything draws, then deiconify. It looks nicer when opening the application. I haven't done any PTK coding for a few years, back before XP was my OS of [not my] choice.

Anyway, there is not a question that there are issues. Finding why and having a global fix or recommended practice is the goal. 

I'd move to using Tcl, for example, but I wish to bundle this app with pp.

This is the main error: "UpdateWrapper: Failed to create container"

> 
> Sorry I couldn't be of more help.
> 

Thanks, any suggestion or clue is a help.


Cheers,

-- 
Michael Higgins <[email protected]>
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk