in reply to Re: Perl Tk geometry problem
in thread Perl Tk geometry problem

Well.. I use 'grid' as a geometry manager, but how can that help me determine the size and height of the Mainwindow? I use 'grid' to assign widgets (like frames and buttons) inside the mainwindow, Could you provice a code example explaining how to use 'grid' to influence the height and width of the MainWindow ?

update: i still can't figure out how using pack to organise the widgets inside the mainwindow, would help me restrict the resizing of the mainwindow itsel? The resizing still happens when I replace the 'grid' manager with 'pack'. Do i leave the 'geometry(***x***) out?

Replies are listed 'Best First'.
Re^3: Perl Tk geometry problem
by biohisham (Priest) on Aug 30, 2009 at 18:55 UTC
    Whenever you use the geometry method explicitly, you are actually disabling automatic resizing which means that chances are there your GUI would not look like what you intended it to be across various platforms, I haven't tried this myself but this is what I know about it. Unless you have strong reason to declare the size yourself using geometry I would rather say let the automatic sizing take place through fidgeting with the sizes of the internal widgets and not the mother widget. Tell me how it is coming along with you . :)


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.

      I found the problem :P. Apparently, when you view the GUI on another resolution, every widget resizes appropriately, except for those that have a label/text within it. The font-size appears not to 'shrink' when i view the GUI on a smaller resolution screen, thereby having an over-sized widget which results in a distorted GUI.