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
#5
function() executes the function. When binding a function to a button you want the button to execute the function, so you pass the function without parens.
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 492 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  tkinter - touchscreen, push the button like click the mouse John64 5 845 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  [PyQt] PyQt5 window closing when trying to display a graph bianca 4 1,690 Aug-12-2023, 03:25 PM
Last Post: bianca
Exclamation [Tkinter] Error when closing the main window with destroy TomasSanchexx 1 775 Aug-06-2023, 01:54 AM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 4,730 May-25-2023, 07:37 PM
Last Post: deanhystad
  Figure Gets Larger Every time I click a show button joshuagreineder 2 1,328 Aug-11-2022, 06:25 AM
Last Post: chinky
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 2,241 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  [PyQt] Button clicked not working catlessness 10 8,222 Oct-21-2021, 12:36 PM
Last Post: catlessness
  [Tkinter] Modify Class on Button Click KDog 4 3,950 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,565 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