in reply to GUI for Test suite
Subroutine process can be just a regular sub.#!/usr/bin/perl -w use Tk; use Tk::DialogBox; use strict; my($main,$Edit); $main=MainWindow->new(-title => 'MyTestProg'); #Creating window with t +itle $main->Label(-text => 'Enter your action')->pack; $Edit=$main->Entry(-width => 20)->pack;#input field $main->Button(-text => 'Test', -command => \&process)->pack(-side => 'left'); #Button Calle +d 'Test' which calls the subroutine $main->Button(-text => 'Exit', -command => [$main => 'destroy'] #button for closing windwo )->pack; MainLoop;
Here you can find everything you need about Tk http://www.ida.liu.se/~tompe/perltk/index.html... $InfoWindow->add("Label", -text => "Output: $output")->pack; ... $InfoWindow->Show(); $InfoWindow->destroy;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GUI for Test suite
by dpatel (Novice) on Apr 19, 2010 at 07:32 UTC | |
by jethro (Monsignor) on Apr 19, 2010 at 08:35 UTC | |
by dpatel (Novice) on Apr 19, 2010 at 08:47 UTC | |
by jethro (Monsignor) on Apr 19, 2010 at 09:10 UTC | |
by Marshall (Canon) on Apr 20, 2010 at 02:49 UTC | |
by dpatel (Novice) on Apr 20, 2010 at 06:54 UTC | |
| |
by gemoroy (Beadle) on Apr 19, 2010 at 08:15 UTC | |
by dpatel (Novice) on Apr 19, 2010 at 08:28 UTC |