Ok, you confused me. I'm not sure I understand the 'deiconify' part, as I've written numerous apps that start up fine and not as an icon by default. Usually my apps look something like this, but never exhibit iconify problems:

my $win = MainWindow->new; $win->configure(-title =>'hi',-background=>'blue'); $win->geometry('+225+150'); # offset from top left $win->minsize(575,375); # no smaller than this $win->maxsize(575,375); # no larger than this # add widgets ... MainLoop();

Slightly off-topic: Note that since I want a window that doesn't change size, I don't have to supply the initial width and height to the 'geometry' method. I should, yes, but three calls in a row to control sizes didn't seem quite so elegant. Still, I have two calls, and that seems to be one too many. Can dictating a non-resizable window of dimensions $x and $y be made in a single call?

As one last follow up: Mastering Perl/Tk by O'Reilly (the Emu book) is a *really* good book. If you can get your work to pay for this, that would be a good thing to do, if not, buy it anyway. I use it all the time and it is really well written. GUI programming books are rarely this easy to read, and this one has tons of content.


In reply to Re: Re: Perl Tk::Wm by flyingmoose
in thread Perl Tk::Wm by aquarium

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.