lollysticky has asked for the wisdom of the Perl Monks concerning the following question:
Hi there dear monks,
I've seem to have stumbled on a problem I can't get solved. My script is a basic "input-convert-to-output" script and it works fine. The problem is the GUI i wrote that makes handling the script a little easier. The GUI itself works fine (again), but the troubles begin when i move the script to another computer that has a different screen-resolution. It doesn't matter whether or not the OS of the computer is the same (linux, mac or windows), the only thing that seems to influence (and alter) the GUI appearance is the resolution.
For some reason, the GUI MainWindow becomes either smaller or larger, while the widgets inside the MainWindow remain 'normal', causing the GUI to look terrible (seeing buttons and frames vanish cause of a very small mainwindow is not very good). I've searched the internet for hours, read perl books,... but I can't seem to find any information about how to 'solidify' (in a lack of better terms) the width and height of the mainwindow (so not the widgets inside it). Apparently I can't use centimeters, inches or any other form of solid distance measurements for the geometry() function at the mainwindow. I tried but failed miserably :)
Therefore, the obvious question is: can someone help me here and try to fix this.
#only a small relevant portion is shown here my $mw = MainWindow->new; my $width = '350'; my $height = '180'; $mw->geometry( $width."x".$height); $mw->resizable(0,0); $mw->title("Calculator");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Tk geometry problem
by biohisham (Priest) on Aug 30, 2009 at 00:22 UTC | |
by lollysticky (Initiate) on Aug 30, 2009 at 00:34 UTC | |
by biohisham (Priest) on Aug 30, 2009 at 18:55 UTC | |
by lollysticky (Initiate) on Aug 31, 2009 at 12:41 UTC | |
|
Re: Perl Tk geometry problem
by Marshall (Canon) on Aug 30, 2009 at 22:48 UTC |