Hi All,
I have an application that displays Perl TK data files, and now the requirement has come down that we must use the 'storableedit' procedure to store the data. (storableedit 1.5).
From what I understand this is kind of like a 'mini relational database', which saves files in a Perl...
Hi all,
Has anyone seen a quick and dirty example of adding a graphical image to a button in Perl TK? All I have is this monstrosity from the 'widget' module, which is like learning to drive the space shuttle to get to the mailbox.........
# icon.pl
use vars qw/$TOP/;
sub icon {
#...
Hi All,
Has anyone ever tried to use a variable for a file handle, as in:
OPEN ($file, "/home/working/logname" )
where $file changes, meaning the handle can be 1, 2, 3, 4, 5 depending on what the variable $file is.
I have a program which opens a tailed log file, and works perfectly well...
Has anyone out there seen an example of having a block of code execute when a file is deleted or renamed?
Basically I need to do this:
if ( -f "file_complete" )
{ print "The process is done! Press B to
continue\n" }
The problem is the way TK works, you have this "MainLoop" line...
Hi All,
Has anyone ever ran a program in the background with a system call:
$status = system ( "run_program&" );
and then wanted to know when it finished? I have looked at articles on fork, wait, and waitpid, many of these appear to be the same obscure paragraph repeated over and over...
Hi All,
I'm wondering if anyone has seen a good example of this out there somewhere.
I am calling a program from within a PERL script using a system call:
system ( "run_program 1>LOGFILE" )
The program writes entries to the logfile, and takes about 5 min or so.
What I want to do is have a...
Hi Group,
This has been quoted by several Perlots? as "impossible", at least without having to go into OS system level calls. Has anyone out there heard of an option flag or module to turn off(hide) the _ [[ X in the upper right hand corner of a TK label or window?.
Appears to be nothing in...
Hi All,
Has anyone out there found any web page which gives an easy, quick example of how to set the position of a Scrolled scrollbar?
I've heard of:
$widget-> xviewMoveto (fraction); or
$widget-> xview();
or even talk of:
-xscrollcommand -> ['set'=> $scrollbar ]
or perhaps I guess...
Hi All,
Does anyone know a quick and dirty way to have one Perl program call another as a module.
I have two complete and separate Perl programs, one gives a list of log files and then when you select one, and click "View", it runs the other program which displays the file nice and orderly for...
Hi All,
This might be an easily answered but hard found question.......
So using the Scrolled method allows you to create a window with automatic scrollbars, which is great.
And I figured out the riddle of how to set attributes of said Scrolled scrollbar by adding this line:
$TheWidget->...
Hello Forum,
I have ransacked Google until my brain is fried, and read at least a dozen explanations of a variable within a variable (including reading 'perldoc -q expand').
Also, the 'wonder line' in another post: "$line =~ s/(\$\w+)/$1/eeg" where someone said "THANK YOU, YOU SOLVED...
Help Forum,
I have been scouring the oceans and deserts of the Internet for some simple, easy code for putting a graphic on a button in Perl Tk. Like that embedded image file you might use in Access or VB.
Now dont' talk to me about Widget, because that two page multi conglomerate code...
Hi All,
I am new to Perl but have worked before in UNIX scripting and (gasp) Microsoft Access......anyway what I am trying to do is "center pad" a line of text at the top of the screen.
What I mean is I'd like to have Name, ID, Alias at the upper left corner, and then have the Phone number at...
Hi All,
I am a new Perl programmer who has been hired to work (among other things) with Perl T/k.
I have been trying to get Perl T/k loaded on my own laptop which is running Red Hat 8 Linux, and have managed to get it up and running. The only problem is 'widget' which gives important...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.