in reply to Re: creating simple GUI
in thread creating simple GUI

Thnx for the reply GrandFather.... suppose I have this in my code:
use Tk; my $main=new MainWindow; $main->title("Test window"); <I print a message "msg" in the window at this line>; MainLoop;
Now how do I add another message to the window.. ? My requirement is.. I should update the window after the MainLoop statement. Just let me know how exactly to use UPDATE()??

Replies are listed 'Best First'.
Re^3: creating simple GUI
by GrandFather (Saint) on Oct 31, 2005 at 03:55 UTC

    I don't know how you show your message, but the code below updates the title bar of the main window to "show progress"

    use warnings; use strict; use Tk; my $main= MainWindow->new (-title => "Test window"); $main->update (); sleep (2); $main->title ("Message"); $main->update (); sleep (2); $main->title ("Startup done"); MainLoop;

    Perl is Huffman encoded by design.