So just like the question says, I\'m trying to let keyboard interrupts happens while Gtk.main() is in progress, however, it just doesn\'t seem to notice that the keyboard in
I also ran into trouble when using the signal module to override the SIGINT handler (100% CPU on the python thread); an alternative for me was the following:
def main():
self.mainloop = GObject.MainLoop()
try:
self.mainloop.run()
except KeyboardInterrupt:
logger.info('Ctrl+C hit, quitting')
self.exit()
def exit():
self.mainloop.quit()