Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Greetings!!

Here's my latest japh in Perl/Tk...

#!c:\perl\bin\perl.exe use strict; use warnings; use Tk; my@e=split'',qw/xyz/;my$d='@e.perlmonks.org';$d=$#e-$#e;my$i=$#e/$#e; ;$_='join';my$j='P'.$d.'h'.$d.'p'.$d.'a'.$d;my$k='.';$_='-';my$r='c'; my$x=qw#bluesandredsandgreensandyellowsandblack#;#$r;my$zx=$#e+$i.$r; my$l=qw/-fill/;my$g=qw/round/;my$o='i';my$b=qw/-width/;my$w=qw/<Any/; my$v=q/Enter>/;my$u=qw/Leave>/;my$nz=$i.$d.$r;my$nw=($#e*$#e*$#e-$i); my@z=split'my',qw/-heightmysplitpackmy-reliefmysunkenmy-borderwidth/; my$bb=$#e*$#e.$k.$#e.($#e*$#e+$i).$r;push@z,$#e;splice@z,$i,$i,$bb;#; unshift@z,$nz;my$nx='';unshift@z,$b;$nx=$k.($i+$#e).($#e*$#e*$#e-$i). ($#e*$#e+$i).$r;my@a=split'q',#e($#e*$#e).$r;my$zr=($#e+$#e).$k.$xar; qw/-capqstrictpackagewarningsq-joinqcoffeeq-tagsqwxyz/;unshift@a,$nx; splice@a,$#e,$i,$g;splice@a,$#e*$#e,$i,$g;push@a,$l;#my$zx=$#e+$i.$r; my@w;unshift@a,$z[$d];splice@a,$nw,$i,$o;@w=split'p',qw%-titlepjAPH%; my@s=split'qw'#reverseqwsplitqwCanvasqw#';$r;my$zr=($#e+$#e).$k.$xa.; ,qw/-expandqwyesqwIAmNotANumberSixOfOnebutttonqwboth/;splice@s,$#e,$i ,$l;my$t='current';my(@v,@u);push@v,$l;unshift@u,@v;#push@u,$t,$s,iq; my@x;@x=split/s.../,$x;push@u,$x[$#x];unshift@u,$t;unshift@v,$t;my$y= MainWindow->new(@w);my$c=$y->Canvas(@z);my$p=sub{my($z,$y)=@_;#strict $y->{j}='';my$f=($z->itemconfigure(@v))[$#e+$#e];$y->{j}="\$c->item". "configure('$t',$l=>'$f')";$z->itemconfigure(@u);};my$q=sub{my($y,$z) =@_;eval$z->{j};};my$h=sub{my$xa=($#e*$#e+$i);my$xb=$#e.($#e*$#e+$i); my$xc=$i.($i+$i).($i+$#e*$#e);my$zz=$#e.$r;;my$zy=$i.$r;my$zx=$#e+$i. $r;;my$zw=$#e.$k.$xa.$r;my$zv=$#e.$k.$xb.$r;my$zu=($#e+$i).$k.$xb.$r; my$zt=($#e+$i).$k.$xa.$r;my$zs=($#e*$#e).$r;my$zr=($#e+$#e).$k.$xa.$r ;my$zq=($#e*$#e).$k.$xb.$r;my$zp=$#e.$k.$xc.$r;my$zo=($#e+$i).$k.($#e +$xa).$xa.$r;my$zn=$xa.$k.$xb.$r;my$zm=$xa.$k.($#e+$xa).$xa.$r;my$zl= ($xa+$i).$k.$xb.$r;my$zk=$i.$k.$xa.$r;my$zj=$xa.$k.$xa.$r;my$zi=($xa+ $#e).$r;my$zh=($xa+$#e+$i).$r;$z[$d]=[$zz,$zy,$zx,$zy,$zw,$zy,$zw,$zy ,$zw,$zx,$zv,$zu,$zz,$zx];$z[$i]=[$zt,$zu,$zs,$zy,$zr,$zu,$zq,$zp,$zo ,$zp];;;$z[$#e]=[$zn,$zu,$zn,$zy,$zm,$zy,$zl,$zk,$zm,$zz,$zj,$zp,$zn, $zp];$z[$i+$#e]=[$zi,$zy,$zi,$zu,$zi,$zp,$zi,$zp,$zh,$zp,$zh,$zy,$zh, $zy,$zh,$zu];};my%m=map{$_=>$_}split//,$j;$m{'j'}='';;&$h();for(my$s= $#e-$#e;$s<$#e*$#e;$s++){$c->createLine($z[$s],@a,$x[$s]);};my$n=join $_,$w,$v;$c->bind($o,$n,[\&$p,\%m]);$n=join$_,$w,$u;$c->#createGUI(); bind($o,$n,[\&$q,\%m]);$c->pack(@s);MainLoop();#ThereAreNoNumbersHere
-Daruma

In reply to GUI japh by Daruma

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (14)
    As of 2014-12-19 15:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (85 votes), past polls