Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Tk;
    ...
           $msg->configure(-text => "Login Successful");
        }
    }
    
  2. or download this
    package AuthService;
    
    ...
    
    ok(!AuthService::login("", ""), "Empty user/passord");
    ok(!AuthService::login(), "undef user/password");
    
  3. or download this
    ## LoginForm.pm
    package LoginForm;
    ...
    $mw->LoginForm->pack;
    
    MainLoop;
    
  4. or download this
    package LoginForm;
    
    ...
       }
    }
    1;
    
  5. or download this
    package AuthService;
    
    ...
       $lf->Subwidget('UserEntry')->delete(0, 'end');
       $lf->Subwidget('PassEntry')->delete(0, 'end');
    }
    
  6. or download this
    package AuthService;
    
    ...
          $entry->eventGenerate('<Key>', -keysym => $ch);
       }
    }
    
  7. or download this
    package AuthService;
    
    ...
       $lf->Subwidget('UserEntry')->delete(0, 'end');
       $lf->Subwidget('PassEntry')->delete(0, 'end');
    }