문제

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