Tkinter window minsize question

Isaac To kkto at csis.hku.hk
Mon Oct 8 22:58:16 EDT 2001


>>>>> "Roman" == Roman Suzi <rnd at onego.ru> writes:

    Roman> While when I resize it manually (to the greater size) it remains
    Roman> in tact. What is wrong?

Because the size of the button is too small, which propagate to the frame
asking it to be resized to a small size.  Remember that w.resize(x,y) only
specify a size smaller than which the user cannot resize the window, and
your program (in particular, the buttons) is still free to resize the window
to whatever size it want.  To do what you want, just add the following after
the frame f1 is created:

  f1.propagate(0)

Regards,
Isaac.



More information about the Python-list mailing list