You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-02-27.07:52:49.654>created_at=<Date2012-02-27.03:13:27.731>labels= ['type-bug', 'invalid']
title='Ctrl-C does not terminate GTK3 Gtk.main() loop when program run from command line'updated_at=<Date2012-02-27.23:50:21.367>user='https://bugs.python.org/NarnieHarshoe'
In a normal python program, Ctrl-C will set up a KeyboardInterrupt and terminate the program. This works with a normal python script, including GTK2 gtk.main(), but GTK3 Gtk.main() (even when used in a more robust GTK program that coded below) will not terminate with Ctrl-C requiring a Ctrl-Z and killing the job to terminate. See the commmand line output below:
The behaviour under Gtk.main() should be changed to respond to the
KeyboardInterrupt.
Well, you should report that to (Py)GTK folks then :-)
Either they set up a SIGINT handler, or they catch the KeyboardInterrupt exception, but that's not a problem with Python.
Closing.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: