[JDEV] Logins
Ryan Eatmon
reatmon at ti.com
Thu Sep 23 10:58:56 CDT 1999
Quoting Thomas Carron:
> > I'm trying to write a Perl/Tk client and it's a little annoying not
> > knowing when to close the login window since there is not message
> > telling me that it's ok to do it.
>
> How are you handling polling, using Alert?
I'm using Tk::repeat. The line is:
$GUI{jabber}->{processId} =
$GUI{top}->repeat(3500, sub { $jabber{client}->Process(0); });
That way the Tk app still has some CPU room to update the widgets, and
3.5 seconds is not a bad poll rate.
--
Ryan Eatmon reatmon at ti.com
-----------------------------------------
Mixed Signal Product Development EDA Team
More information about the JDev
mailing list