Help for this page

Select Code to Download


  1. or download this
        for (0..$numChem)  #numChem is the size of the array
        {
    ...
            $solvCheck ->bind("all","<Button-1>" => \&colorme);   #when bu
    +tton-1 is pushed, execute &colorme
            $solvCheck -> pack();
        }
    
  2. or download this
        for (0..$numChem){
            ${$wtPercent}[$_] = 0;
    ...
            );
            $wtPercentbox[$_] -> pack(-pady => 4);
        }
    
  3. or download this
    sub colorme
    {
    ...
        $wtpercentcolor{$index} = "black";
        #$wtpercentcolor = "black"
    };
    
  4. or download this
    #!/usr/bin/env perl -w
    
    ...
        $wtpercentcolor{$index} = "black";
        #$wtpercentcolor = "black"
    };