hello i am writing a perltk GUI application i have created a main window with some buttons i want when user press a button a popup will appear and inside the popup there will be multile Entry fields such that i can take data from user. I have tried with toplevel the new popup is appearing but the buttons and entries that i have created inside the toplevel is not there in the new toplevel window. please help me ..you can also suggest if there is an alternative method
my $tl=$mw; -->my main window ref $popup; if (! Exists $popup) { $popup=$tl->Toplevel(-width=>"200",-height=>"20"); $popup->geometry("500x200"); # creating frames in toplevel $lframe=$popup->Frame(-width=>"25")->pack(-side=>"left",-fill=>"y"); $rframe=$popup->Frame(-width=>"25")->pack(-side=>"right",-fill=> +"y"); # Creating Labels $lframe->Label(-text=>"Name", -relief=>'raised')->pack(-side=>"l +eft"); $popup->Label(-text=>"Bday", -relief=>'raised')->pack(-side=>"le +ft"); $popup->Label(-text=>"mob", -relief=>'raised')->pack(-side=>"lef +t"); $popup->Label(-text=>"email", -relief=>'raised')->pack(-side=>"l +eft"); # Creating Entries $popup->Entry()->pack(-side=>"right"); $popup->Entry()->pack(-side=>"right"); $popup->Entry()->pack(-side=>"right"); $popup->Entry()->pack(-side=>"right"); } else { $popup->deiconify; $popup->raise; }
if you need any more info please write back

In reply to perltk-problem related to toplevel widget by perlplayer

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.