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

  • SEARCH
  • Home
  • 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 7964467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:53:55+00:00 2026-06-04T05:53:55+00:00

I am a newcomer to tcl/tk and need to run a script in cadence’s

  • 0

I am a newcomer to tcl/tk and need to run a script in cadence’s encounter. To do so I source my file in the provided interpreter and call my function. On the first run it works fine. However once I close my main window created with Tk, and try to rerun my method it tells me that it can’t invoke the wm command since the application has been destroyed. How can I rerun the script without restarting the tcl interpreter?

  • 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-06-04T05:53:57+00:00Added an answer on June 4, 2026 at 5:53 am

    Closing the main window is the problem, it puts Tk into a non recoverable state that can only be followed by an exit.

    Try binding to the WM_DELETE message and just hide/iconify the main window ‘.’ or use an extra toplevel window instead of the default ‘.’ window.

    Depending on your script you might need to do a few more things, as some widgets/names might already exists when running twice.

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

Sidebar

Related Questions

This is my first post and I'm still a Python and Scipy newcomer, so
newcomer and first ever question here. I am using the multiprocessing module of Python
I'm a newcomer to C and I have a problem when trying to call
I'm a newcomer to Qt, but I'm trying to implement what basically amounts to
I am a newcomer to Maven, and I was wondering if there was a
As a newcomer to iOS, I found that ARC has thus far really helped
I'm a newcomer to Caliburn.Micro and there are a few things I'm still not
I am a newcomer to TDD. What are some of the techniques you guys
I'm a newcomer to PDO and have to say that I like it so
I'm a newcomer trying to get my feet wet with Ruby and Sinatra. I

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.