This is what i get now:-- |5 | Enter the number of daily log files to copy -- -- |5 | Enter the number of audit log files to copy --
-- |5 | Enter the number of + daily log files to copy -- -- |5 | Enter the number of audit log files to copy --
use Modern::Perl; use Tk; my %config = ( numberOfDailyLogsToCopy => 5, numberOfAuditLogsToCopy => 5, ); my $mainWindow = MainWindow->new( -title => "main window", ); my $chkboxFrame = $mainWindow -> Frame( -borderwidth => 2, ) +->pack( -anchor => 'w', ); my $entryDailyLogs = $chkboxFrame -> Entry( -textvariable => \$config{'numberOfDailyLo +gsToCopy'}, -width => 2, ) -> pack( -anchor => 'w',); my $entryDailyLogsText = $chkboxFrame -> Label( -text => 'Enter the number of daily log fi +les to copy', ) -> pack( -before => $entryDailyLogs, -si +de => 'right' ); my $entryAuditLogs = $chkboxFrame -> Entry( -textvariable =>\$config{'numberOfAuditLog +sToCopy'}, -width => 2, ) -> pack( -anchor => 'w', ); my $entryAuditLogsText = $chkboxFrame -> Label( -text => 'Enter the number of audit log fi +les to copy', ) -> pack( -before => $entryAuditLogs, -si +de => 'right'); MainLoop;
use Modern::Perl; use Tk; my %config = ( numberOfDailyLogsToCopy => 5, numberOfAuditLogsToCopy => 5, ); my $mainWindow = MainWindow->new( -title => "main window", ); my $dailyFrame = $mainWindow -> Frame( -borderwidth => 2, ) - +>pack(); my $entryDailyLogs = $dailyFrame -> Entry( -textvariable => \$config{'numberOfDailyLo +gsToCopy'}, -width => 2, ) -> pack( -side => 'left', -anchor => 'w' +); my $entryDailyLogsText = $dailyFrame -> Label( -text => 'Enter the number of daily log fi +les to copy', ) -> pack( -side => 'left' ); my $auditFrame = $mainWindow -> Frame( -borderwidth => 2, + ) ->pack(); my $entryAuditLogs = $auditFrame -> Entry( -textvariable =>\$config{'numberOfAuditLog +sToCopy'}, -width => 2, ) -> pack( -side => 'left', -anchor => 'w' + ); my $entryAuditLogsText = $auditFrame -> Label( -text => 'Enter the number of audit log fi +les to copy', ) -> pack( -side => 'left' ); MainLoop;
In reply to TK positioning of elements by wwe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |