Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jpasquini
  • Content: Threads
  • Order by date
  1. jpasquini

    storableedit file editor - anyone?

    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...
  2. jpasquini

    image on a user button (groan....)

    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 { #...
  3. jpasquini

    using a variable for a file handle

    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...
  4. jpasquini

    detecting when a file appears

    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...
  5. jpasquini

    waiting for a process to finish

    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...
  6. jpasquini

    Displaying live results of a logfile in a window

    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...
  7. jpasquini

    turning off those close, minimize, maximize buttons

    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...
  8. jpasquini

    Setting the position of a Scrolled scollbar

    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...
  9. jpasquini

    Calling one Perl program from another

    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...
  10. jpasquini

    Scrolling buttons in a Scrolled method

    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->...
  11. jpasquini

    variable within a variable

    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...
  12. jpasquini

    Adding graphics to buttons in TK

    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...
  13. jpasquini

    Padding magic in Perl/Tk

    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...
  14. jpasquini

    Problems with Perl T/k and widget

    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...

Part and Inventory Search

Back
Top