Python Forum
Closing window on button click not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing window on button click not working
#4
Thank you for your responses.
I put parens after the new_window.destroy in my save_columns routine and that fixed the problem.
I tried putting parens after the new_window.destroy on my Exit button command and it failed with a bad window pathname error.
They should fix Python so that is is more consistent.
Thanks.
Reply


Messages In This Thread
RE: Closing window on button click not working - by kenwatts275 - May-03-2020, 01:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 609 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  tkinter - touchscreen, push the button like click the mouse John64 5 938 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  [PyQt] PyQt5 window closing when trying to display a graph bianca 4 1,783 Aug-12-2023, 03:25 PM
Last Post: bianca
Exclamation [Tkinter] Error when closing the main window with destroy TomasSanchexx 1 820 Aug-06-2023, 01:54 AM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 5,106 May-25-2023, 07:37 PM
Last Post: deanhystad
  Figure Gets Larger Every time I click a show button joshuagreineder 2 1,355 Aug-11-2022, 06:25 AM
Last Post: chinky
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 2,277 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  [PyQt] Button clicked not working catlessness 10 8,345 Oct-21-2021, 12:36 PM
Last Post: catlessness
  [Tkinter] Modify Class on Button Click KDog 4 4,010 May-11-2021, 08:43 PM
Last Post: KDog
Question closing a "nested" window with a button in PySimpleGUI and repeating this process Robby_PY 9 13,687 Jan-18-2021, 10:21 PM
Last Post: Serafim

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020