in reply to tk label text disappears ?!

Hi lepetitalbert
While using grid may solve the actual problem at hand. what I find more interesting is why when running your original code just MOVING the window first, causes it to work properly?

There seems to be a failed or missing repaint of that text label on the second time. (Which is the first time you've done a selection on the Option Menu.)
I wonder if this is a bug in the TK code itself? When liverpole and I deleted some items from the OptionMenu the bug also went away. But when we forced a repaint (covering the window, moving it) as you said, the system works as expected.

s&&VALKYRIE &&& print $_^q|!4 =+;' *|

Replies are listed 'Best First'.
Re^2: tk label text disappears ?!
by jdtoronto (Prior) on Jul 31, 2006 at 15:52 UTC
    wulvrine,

    I think the problem is related to the packing order and parameters. I didnt have time to go into great detail, but I think the two labels were being positioned one on top of the other.

    jdtoronto

      Hi wulvrine,

      while trying to make a minimal code to post, I had strange results like (I'm home now and don't have the codes but I'll check that tomorrow!).

      - the same code but not in a dialog box works

      - if I comment out any item (from the snippet) in $canton_choice it works.

      Now stranger :

      - I tested my unchanged script on my linux box and it works

      - It even works in my XP in vmware.

      ??

      Have a nice day.

      "There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates