in reply to Re: Using a Tk window within a function
in thread Using a Tk window within a function

Thanks zentara, that's useful.
  • Comment on Re: Re: Using a Tk window within a function

Replies are listed 'Best First'.
Re: Re: Re: Using a Tk window within a function
by axis3x3 (Acolyte) on May 28, 2004 at 18:07 UTC

    Presumably I would withdraw it from view like so:

    $mainwindow->withdraw()
Re: Re: Re: Using a Tk window within a function
by zentara (Cardinal) on May 29, 2004 at 13:22 UTC
    Yes, and a good way to bring it out of hiding is:
    $mw->raise();
    You can also test for what state you are in:
    if ($mw->state eq 'withdrawn') { $mw->raise; } else { $mw->withdraw;

    I'm not really a human, but I play one on earth. flash japh