in reply to Re^3: Perl Tk: How Can I get the MainWindow Configuration?
in thread Perl Tk: How Can I get the MainWindow Configuration?

Usually you don't specify the geometry of the window when you create it, but let Tk calculate and display a minimum window, just to fit all the widgets inside. In this case the 'width', 'height' and 'geometry' methods ca be used to find out the result.

That is because Tk widgets may get different sizes with different screen resolutions and/or fonts.

The title can be changed, let's say, according to some action you choose by menu.

Regards, Stefan

  • Comment on Re^4: Perl Tk: How Can I get the MainWindow Configuration?