Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 208637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:50:36+00:00 2026-05-11T17:50:36+00:00

[cross posted again to Mahalo answers] My Perl/Tk script has an initial spreadsheet like

  • 0

[cross posted again to Mahalo answers]

My Perl/Tk script 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

$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 second 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 second file shows up as a complete new frame underneath the still displayed first spreadsheet.

Thanks for the help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:50:37+00:00Added an answer on May 11, 2026 at 5:50 pm

    “pack(‘forget’)” merely removes a widget from view. It doesn’t delete it, nor does it do anything with the data displayed within it. If you fail to destroy the widget you will have, in effect, a big memory leak as you create more and more spreadsheet widgets.

    The quickest solution to your problem is to destroy the old widget (using the destroy method) and recreate it with the new data. Another solution is to keep the widget but use deleteRows() to remove all the existing data before inserting the data for the new file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: I've cross-posted this question in the grails-user mailing list This weekend using this
[Cross-posted from lib-curl mailing list] I have a single threaded app (MSVC C++ 2005)
This is already cross-posted at MS Connect: https://connect.microsoft.com/VisualStudio/feedback/details/560451 I am attempting to override the
I want to store some genomic positions (chromosome,position) using MongoDB. something like: { chrom:chr2,
Cross-posted from the Cukes Google Group: I have experimented with a number of methods
I cross-posted in Javaranch too. I did my due diligence by doing Google search.
This is cross-posted on the ggplot2 google group My situation is that I'm working
EDIT: To fix mistake in covariance matrix Cross posted from here Ok so I
(cross posted to boto-users ) Given an image ID, how can I delete it
(cross-posted on Mozilla: http://forums.mozillazine.org/viewtopic.php?f=7&t=2254955 ) I'm trying to work with the Mozilla storageService .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.