Current location: Hot Scripts Forums » Programming Languages » Perl » Perl/Tk application


Perl/Tk application

Reply
  #1 (permalink)  
Old 08-13-03, 12:21 PM
ro0t ro0t is offline
New Member
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Perl/Tk application

Hello Experts,

I am an ASIC tester and i have been asked to do something with Perl/Tk
so I would appreciate it, if I can get some help into this.I have done bits of it but I am stuck into one particular area. So here is the meat :

- I have been given lots of perl scripts that test verilog code. I didn't write the scripts, I simply open a terminal "perl scriptname.pl" and after 15 - 30 minutes i get a "testname.log".This is what is vital for me the log. I want to insert this thing into a gui, but to manage lots of scripts
running in parallel. So i though if i could make something like cells with rows and collumns, a widget to select the perl script, start/stop button and a status label would be perfect. I could load up many test cases and when they are done I could see the results.

Here is how I visualize it:


Test case _ _ Time Started _ _Status_ __ _ Start/Stop _ _View
My_case _____Today,12:23 ___ Running
My_case2 ___date,time ________Failed


and here are my problems.

1) How can i make a table that will add
extra rows each time another file is added.This should be increasing dynamically.

2) Can I give behaviour to a button to change label. Something like onclick() -label=>"Stop", this is for the start stop button.

3) I know how to run a perl script through
perl and grab its output, but how do I stop it ? Do i kill the job ?

Any ideas or recommendations? I haven't found any widget that can do
the cells and colums....

If you can point me to any samples or relevant topics I would be
greatful.


Thank you kindly
Vassili
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-06-03, 07:57 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
iam not really sure what your looking for but to view a file..

use Tk;

$mw = MainWindow->new();

$text = $mw->Text()->pack(-pady => '10', -padx => '10');

open(FILE, "FILE PATH) or die "Cant open file: $!";
@file = <FILE>;

$text -> insert('end', @file);

MainLoop;

That will print the contents of the text file into a box.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-04-03, 10:50 PM
rob2132 rob2132 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: USA
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ro0t
Hello Experts,

I am an ASIC tester and i have been asked to do something with Perl/Tk
so I would appreciate it, if I can get some help into this.I have done bits of it but I am stuck into one particular area. So here is the meat :

- I have been given lots of perl scripts that test verilog code. I didn't write the scripts, I simply open a terminal "perl scriptname.pl" and after 15 - 30 minutes i get a "testname.log".This is what is vital for me the log. I want to insert this thing into a gui, but to manage lots of scripts
running in parallel. So i though if i could make something like cells with rows and collumns, a widget to select the perl script, start/stop button and a status label would be perfect. I could load up many test cases and when they are done I could see the results.

Here is how I visualize it:


Test case _ _ Time Started _ _Status_ __ _ Start/Stop _ _View
My_case _____Today,12:23 ___ Running
My_case2 ___date,time ________Failed


and here are my problems.

1) How can i make a table that will add
extra rows each time another file is added.This should be increasing dynamically.

2) Can I give behaviour to a button to change label. Something like onclick() -label=>"Stop", this is for the start stop button.

3) I know how to run a perl script through
perl and grab its output, but how do I stop it ? Do i kill the job ?

Any ideas or recommendations? I haven't found any widget that can do
the cells and colums....

If you can point me to any samples or relevant topics I would be
greatful.


Thank you kindly
Vassili
If you're still looking for help, let me know. In the meantime, there's a couple of very good books regarding Perl/Tk. Two that come to mind are Advanced Perl Programming (Maybe a bit extreme for the task you are looking to do, but a great book and it covers a lot about Perl/Tk), and the other, of course, being Programming for Perl/Tk (Both by O'Reilly & Assoc and both likely on Safari).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to submit a job application securley. jimtomas Script Requests 0 10-02-03 08:59 PM
PHP script needed for an application gicone32 Script Requests 0 10-02-03 01:44 PM
Urgent : CLIENT/SERVER application micromedia Everything Java 2 09-09-03 11:55 AM
Photo Manipulation application etc srich23 Script Requests 3 09-06-03 10:58 AM
Price Comparison Application... jag6945 General HotScripts Site Discussion 1 06-20-03 03:29 AM


All times are GMT -5. The time now is 08:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.