Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Perl Tk, how to get File Browser, capture output to a Log file and format my checkboxes

by tybalt89 (Monsignor)
on Mar 23, 2022 at 13:51 UTC ( [id://11142318]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl Tk, how to get File Browser, capture output to a Log file and format my checkboxes
in thread Perl Tk, how to get File Browser, capture output to a Log file and format my checkboxes

--- pm11142273.pl.~54~ 2022-03-22 13:34:52.301454754 -0700 +++ pm11142273.pl 2022-03-23 06:39:44.750787662 -0700 @@ -5,7 +5,8 @@ use Tk; my $additionalcheckbutton = 0; -my @checkbuttonlabels = split /\n/, <<END; +# NOTE 1a) wrap if text too long +s/(.{20}) /$1\n/g for my @checkbuttonlabels = split /\n/, <<END; one two very long text entry for test purposes @@ -28,7 +29,7 @@ my @cbs = map { $leftframe->Checkbutton( - -text => s/.{20}\K /\n/gr, # NOTE 1a) wrap if text too + long + -text => $_, -anchor => 'w', # NOTE 1) align buttons with -fil +l x -variable => \$values[$n++], -command => \&addextra,
  • Comment on Re^4: Perl Tk, how to get File Browser, capture output to a Log file and format my checkboxes
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found