MoshiachNow
IS-IT--Management
HI,
I seem to fail to find a way to position 3 buttons in one row,at the bottom of the text.Will appreciate help.Thanks
my $mw = new MainWindow; # Main Window
$mw->geometry('+350+10');
my $frm_name = $mw -> Frame() -> pack();
my $lab1 = $frm_name -> Label(-text=>"Enter the remote hostname or IP:") -> pack();
my $ent1 = $frm_name -> Entry() -> pack();
my $lab2 = $frm_name -> Label(-text=>"Enter the number of iterations to run [5]:") -> pack();
my $ent2 = $frm_name -> Entry() -> pack();
my $txt = $mw -> Text(-width=>90, -height=>20) -> pack(); #Text Area
my $but1 = $mw -> Button(-text=>"Start nettest", -command =>\&start)-> pack(); #Start button
my $but2 = $mw -> Button(-text=>"Stop nettest", -command =>\&KILL_MON)-> pack(); #Stop button
my $but3 = $mw -> Button(-text=>"QUIT", -command =>sub{\&KILL_MON;unlink $FILE1;$mw->destroy})-> pack(); #Quit button
Long live king Moshiach !
I seem to fail to find a way to position 3 buttons in one row,at the bottom of the text.Will appreciate help.Thanks
my $mw = new MainWindow; # Main Window
$mw->geometry('+350+10');
my $frm_name = $mw -> Frame() -> pack();
my $lab1 = $frm_name -> Label(-text=>"Enter the remote hostname or IP:") -> pack();
my $ent1 = $frm_name -> Entry() -> pack();
my $lab2 = $frm_name -> Label(-text=>"Enter the number of iterations to run [5]:") -> pack();
my $ent2 = $frm_name -> Entry() -> pack();
my $txt = $mw -> Text(-width=>90, -height=>20) -> pack(); #Text Area
my $but1 = $mw -> Button(-text=>"Start nettest", -command =>\&start)-> pack(); #Start button
my $but2 = $mw -> Button(-text=>"Stop nettest", -command =>\&KILL_MON)-> pack(); #Stop button
my $but3 = $mw -> Button(-text=>"QUIT", -command =>sub{\&KILL_MON;unlink $FILE1;$mw->destroy})-> pack(); #Quit button
Long live king Moshiach !