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 8318269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:54:20+00:00 2026-06-08T21:54:20+00:00

This is hard to explain so I will do my best. I have a

  • 0

This is hard to explain so I will do my best.

I have a main program window with a button that is called “Backup/Restore”. Pressing this button opens a new window with two buttons to choose from; “Backup” and “Restore”. Pressing either of these button opens a third window with information on performing the action. Everything works great the first time I run either “Backup” or “Restore”. If I close the second window with the two buttons on it; then press the “Backup/Restore” button from the main window it bring the second window with the two buttons back as it should, but the buttons labeled “Backup” and “Restore” do nothing when clicked. The buttons on the third window only lose their functionality after the second window has been closed once.

When creating the window I use the code:

def exportEFS(self): #this is the second window with two buttons
  self.exportGUI = Toplevel()

  Button(self.exportGUI, text='Backup', command=self.backup).pack(padx=100,pady=5)
  Button(self.exportGUI, text='Restore', command=self.restore).pack(padx=100,pady=5

def backup(self): #this is the backup window that does not work if the second window has     
                   been closed once.
  self.backup = Toplevel()
  <button code>

def restore(self): #this is the backup window that does not work if the second window has     
                   been closed once.
  self.restore = Toplevel()
  <button code>

The code for the main window is too large to post, I’m not sure if any parts would help.

  • 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-08T21:54:24+00:00Added an answer on June 8, 2026 at 9:54 pm

    …the function that calls the Toplevel window (“def backup(self):”) has the same name as the Toplevel window itself (“self.backup = Toplevel()”), which is probably the cause of the problem.
    same with the “restore” option.

    I had something like this, all was ok after I changed the name.

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

Sidebar

Related Questions

It's kinda hard to explain, but I will try my best. I have this
This is kindy hard to explain, Am looking for an Algorithms that will take
This is hard to explain, but I will do my best: I am building
This is hard to explain but I will do my best. In order to
This will be hard to explain what I want, so I'll try my best.
Okay, this will be a bit hard to explain, but I'll try my best.
This will be a bit hard to explain but I am going to have
This is hard to explain, but I will try. I have a background image
This problem is going to be hard for me to explain but I will
Its hard to explain this so I'll try my best. Is it possible to

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.