Aboveyou has asked for the wisdom of the Perl Monks concerning the following question:
################# #Scroll Bar # ################# my $mwf = $mw->Scrolled( 'Pane', -scrollbars => 'e', -background => 'white', -sticky => 'nwse', )->pack(-padx => 0, -pady => 230 , -expand => 0,-fill => 'both'); ################# #Sub Search # ################# sub copy_entry { $copy_text = $dude->get(); chomp($copy_text); $queryHandle = $dbshop->prepare(" SELECT * FROM Department WHERE ( Ext + = '$copy_text' OR Mobile = '$copy_text' OR [E-Mail] = '$copy_text' +OR [Full Name] = '$copy_text' OR [Direct Number] = '$copy_text' ) "); $queryHandle->execute() or die $DBI::errstr; while (@row = $queryHandle->fetchrow) { $f1 = $mwf->Frame()->pack(-expand => 0,-fill => 'both' ); my %dudes; foreach my $fr($f1){ my $i =0; foreach (1..5){ $dudes{'text'} = $fr->Text( -background => 'white', -foreground => 'black', -height => 1, -width => 21 )->pack(-side=>'left',-expand => 1, -fill => 'both' ); $dudes{'text'}->insert('end', $row[$i]); $i++; } } } $queryHandle->finish(); } MainLoop; MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A few que
by CountZero (Bishop) on Feb 04, 2009 at 06:34 UTC | |
|
Re: A few que
by slacker (Friar) on Feb 03, 2009 at 18:23 UTC |