answered question
0
Votes
Votes
2
Answers
Answers
M$22.00
How can I wipe my displayed spreadsheet with a 2nd one opened from the File menu or my Open button?
My Perl/Tk script can be seen here: http://pastebin.com/m6861e5a1. It has an initial Spreadsheet like grid displayed using the Tk::TableMatrix::Spreadsheet modules. My spreadsheet is programatically called $ss. This initial grid is wiped before the display of the first spreadsheet, with this command: $ss-> pack('forget');. The script as it is now also adds $mw-> pack('forget');, but that's not necessary.
My question is how to open a 2nd file from the File -> Open dialog box and it wipe out the first file displayed, just like the first file wipes out the initial grid? Right now the 2nd file shows a as a complete new frame underneath the still displayed first spreadsheet.
My question is how to open a 2nd file from the File -> Open dialog box and it wipe out the first file displayed, just like the first file wipes out the initial grid? Right now the 2nd file shows a as a complete new frame underneath the still displayed first spreadsheet.
answers (2)
Unfortunately after struggling with dependencies to get the program to compile the result was ..... it worked. I am running Perl on a Linux Centos 5 distro. What platform are you running on? One thing I would suggest is to make sure your perl modules are the latest version. The only changes I made to your code was to remove delete some of the the PDP specific stuff and replace it with the equivalent for my system:
use Spreadsheet::XLSX::Utility2007PDP;
became use Spreadsheet::XLSX::Utility2007;
use Spreadsheet::ReadPDP;
became use Spreadsheet::Read;
http://www.youtube.com/watch?v=Ocdk0BDqF6E
(bigger version) http://blip.tv/file/2071404/
Darn, I was so looking forward to those $22 Mahalo dollars
use Spreadsheet::XLSX::Utility2007PDP;
became use Spreadsheet::XLSX::Utility2007;
use Spreadsheet::ReadPDP;
became use Spreadsheet::Read;
http://www.youtube.com/watch?v=Ocdk0BDqF6E
(bigger version) http://blip.tv/file/2071404/
Darn, I was so looking forward to those $22 Mahalo dollars
| Asker's rating: |
Awesome. The script works fine now. Thanks very much! I apologize for the horrors of bad programming, it's only my 2nd Perl script and it's of the script kiddie variety and really only my 3rd programming project. I'm teaching myself and only resorting to books if totally frustrated. The web on the other hand has been very helpful.
voted helpful: socrtwo
Hey, you might want to consider asking for this answer at a 'Tech' forum rather than a general user place like Mahalo.
Still, let me see if I can ask a friend or two about your problem... Good luck!
Still, let me see if I can ask a friend or two about your problem... Good luck!
voted unhelpful: robbrown
Sorry to vote this as unhelpful. If we had more programming questions, we may have more programmers to answer them.
I wish that I knew Perl so that I could answer these.
Why not ask your Perl programming friends to signup and answer here? At M$22, this question might be "priced right" to encourage someone who knows Perl to submit an answer.
I wish that I knew Perl so that I could answer these.
Why not ask your Perl programming friends to signup and answer here? At M$22, this question might be "priced right" to encourage someone who knows Perl to submit an answer.
No problemo, I thought I was being helpful, LOL!
Nah, I hear you. I thought long and hard before hitting that "no" button.
It's really just that I wish that there were more programming questions here. I love reading programming problems and solutions. Even when I know the solution to a problems, seeing how other people solve things is invaluable.
Sadly, I have very little Perl in me... only enough to hack a script if I have to.
It's really just that I wish that there were more programming questions here. I love reading programming problems and solutions. Even when I know the solution to a problems, seeing how other people solve things is invaluable.
Sadly, I have very little Perl in me... only enough to hack a script if I have to.
I'm going to take a look at this question when I get home tonight, that size of tip is too big to pass up without spending some time on it.
Related questions
140 characters left













Thanks again for the great effort.
I moved $label, $label2, $label3, $jcb, $but2, $but3, $nb to global scope
http://www.youtube.com/watch?v=0ym7T65Bzw8