in reply to Re^5: Tk multiple monitor problem
in thread Tk multiple monitor problem

I'm not sure what 'withdraw' you are talking about.

Replies are listed 'Best First'.
Re^7: Tk multiple monitor problem
by Argel (Prior) on Mar 13, 2012 at 20:11 UTC
    In Re^3: Tk multiple monitor problem about a third of the way down the code is a $mw->withdraw. It's used to hide what you are working on until you are ready to display it. Something like:
    $mw->withdraw # Do all your GUI creation stuff here $mw->deiconify; # Not sure if this is needed (maybe only with X) $mw->raise;
    I had assumed you had tried that, but now it sounds like maybe not. Or maybe it's mroe of an X-Windows thing.

    Elda Taluta; Sarks Sark; Ark Arks
    My deviantART gallery

      OK. Well, I hadn't though to try that. I guess that it didn't occur to me that it might have a bearing on the problem. I did spend some time this evening trying a few variations on the theme, however. None of them seemed to make any difference. The popup always appears in the main monitor rather than the left monitor, where Tk's main window is.

        Dang, that's too bad, but good to know! Thanks for trying it out!!

        Elda Taluta; Sarks Sark; Ark Arks
        My deviantART gallery