Python Forum
[Tkinter] tkinter freezes by clicking button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] tkinter freezes by clicking button
#23
(Apr-02-2018, 04:07 PM)Zatox11 Wrote: Unfortunately the "solve" button is broken again: By clicking solve, another instance of tkinter is opened and it is stuck in an endless loop.

I know very little of the issues of the multiprocessing module in windows, but you could try to call freeze_support() in your code
# SudokuSolver_main.py
from multiprocessing import freeze_support
 
if __name__ == '__main__':
    freeze_support()
    import SudokuSolver_class as Sudokuolver
    from tkinter import Tk
 
    def main():
        root = Tk()
        app = Sudokuolver.SudokuSolver(root)
        root.mainloop()
 
    main()
Reply


Messages In This Thread
tkinter freezes by clicking button - by Zatox11 - Mar-30-2018, 11:38 AM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-30-2018, 02:31 PM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-30-2018, 03:32 PM
RE: tkinter freezes by clicking button - by woooee - Mar-30-2018, 07:35 PM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-31-2018, 08:46 AM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-31-2018, 09:18 AM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-31-2018, 10:23 AM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-31-2018, 10:48 AM
RE: tkinter freezes by clicking button - by Zatox11 - Mar-31-2018, 02:15 PM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-01-2018, 11:38 AM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-02-2018, 12:58 PM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-02-2018, 04:07 PM
RE: tkinter freezes by clicking button - by Gribouillis - Apr-02-2018, 07:20 PM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-03-2018, 10:50 AM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-03-2018, 02:58 PM
RE: tkinter freezes by clicking button - by sylas - Apr-06-2018, 07:57 AM
RE: tkinter freezes by clicking button - by sylas - Apr-06-2018, 09:10 AM
RE: tkinter freezes by clicking button - by sylas - Apr-08-2018, 09:32 AM
RE: tkinter freezes by clicking button - by sylas - Apr-08-2018, 12:01 PM
RE: tkinter freezes by clicking button - by sylas - Apr-08-2018, 01:05 PM
RE: tkinter freezes by clicking button - by sylas - Apr-08-2018, 03:28 PM
RE: tkinter freezes by clicking button - by Zatox11 - Apr-10-2018, 09:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter Radio button group not setting default selection simonc88 3 981 Mar-20-2025, 06:53 PM
Last Post: buran
  Using place for a button, many examples but AttributeError, tkinter Edward_ 3 992 Dec-17-2024, 09:06 PM
Last Post: deanhystad
  [Tkinter] TKinter Remove Button Frame Nu2Python 8 4,741 Jan-16-2024, 06:44 PM
Last Post: rob101
  tkinter - touchscreen, push the button like click the mouse John64 5 2,511 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 14,398 May-25-2023, 07:37 PM
Last Post: deanhystad
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 3,400 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  Can't get tkinter button to change color based on changes in data dford 4 4,858 Feb-13-2022, 01:57 PM
Last Post: dford
  Creating a function interrupt button tkinter AnotherSam 2 8,260 Oct-07-2021, 02:56 PM
Last Post: AnotherSam
  [Tkinter] Have tkinter button toggle on and off a continuously running function AnotherSam 5 7,556 Oct-01-2021, 05:00 PM
Last Post: Yoriz
  tkinter showing image in button rwahdan 3 6,973 Jun-16-2021, 06:08 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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