From: Robert A. <ro...@gm...> - 2025-06-27 20:25:34
|
On Thu, Jun 26, 2025 at 3:30 PM Dima Kogan <di...@se...> wrote: > > Hello. > > This is another issue i just looked into, that I would appreciate some > pointers for. I have this trivial pyfltk program: > > #!/usr/bin/python3 > > from fltk import * > > window = Fl_Window(100,200,"xxx") > window.end() > window.show() > > Fl.run() > > I run it. Instead of hitting Escape, I go back to the console, and hit > Ctrl-c. I expect the program to exit, but it ignores the C-c, and does > nothing. If I go back to the application, and hit Escape, it does exit, > but also says this: > Tried it with C++ fltk hello world, and sending sigint with ctrl-c does indeed kill the process. Also tried it with tkinter (built-in python gui). Tkinter does NOT kill the process until you switch focus back to the gui window. I am, however, skeptical that this issue should be the responsibility of pyfltk to fix. To me, this seems more like a python issue. BTW are you trying to send a pyfltk process SIGINT from another process (IPC)? Tkinter seems to have had the same issue here https://stackoverflow.com/questions/39840815/exiting-a-tkinter-app-with-ctrl-c-and-catching-sigint |