Welcome, guest | Sign In | My Account | Store | Cart

When you change content of a gtk.Window it expands automatically, but does not shrink automatically. Here is a small workaround.

Python, 1 line
1
w.resize(*w.size_request())
Created by Dima Tisnek on Mon, 16 Jul 2007 (PSF)
Python recipes (4591)
Dima Tisnek's recipes (11)

Required Modules

  • (none specified)

Other Information and Tasks