سؤال

I have simple Perl/Tk application. I use "grid" to place widgets on mainwindow. But the problem is that widgets' size doesn't change when I resize my mainwindow. There is just a blank place and all widgets with old size. How can I autoresize widgets?

هل كانت مفيدة؟

المحلول

You have to use the -sticky option, i.e.

$mw->SomeWidget(...)->grid(..., -sticky => 'nsew');
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top