homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Narnie.Harshoe
Recipients Narnie.Harshoe
Date 2012年02月27日.03:13:27
SpamBayes Score 3.1080943e-10
Marked as misclassified No
Message-id <1330312408.32.0.611668312241.issue14138@psf.upfronthosting.co.za>
In-reply-to
Content
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:
$ python -c "while True:
> pass
> "
^CTraceback (most recent call last):
 File "<string>", line 1, in <module>
KeyboardInterrupt
$ python -c "import gtk
> gtk.main()
> "
^CTraceback (most recent call last):
 File "<string>", line 2, in <module>
KeyboardInterrupt
$ python -c "from gi.repository import Gtk
> Gtk.main()
> "
^C
^C
^Z
[1]+ Stopped python -c "from gi.repository import Gtk
Gtk.main()
"
$ kill %1
[1]+ Stopped python -c "from gi.repository import Gtk
Gtk.main()
"
The behaviour under Gtk.main() should be changed to respond to the KeyboardInterrupt.
History
Date User Action Args
2012年02月27日 03:13:28Narnie.Harshoesetrecipients: + Narnie.Harshoe
2012年02月27日 03:13:28Narnie.Harshoesetmessageid: <1330312408.32.0.611668312241.issue14138@psf.upfronthosting.co.za>
2012年02月27日 03:13:27Narnie.Harshoelinkissue14138 messages
2012年02月27日 03:13:27Narnie.Harshoecreate

AltStyle によって変換されたページ (->オリジナル) /