2

I found that when I run my application using "quickly run" and press Ctrl+c to kill it, the application does not quit. I am using Quickly 12.04.

For GTK2 applications, I used

def gtk_main_quit(self,widget,data=None):
    gtk.main_quit()

Is that enough to do it here with GTK3 ?

2 Answers 2

1

Here's the bugreport describing your issue: https://bugzilla.gnome.org/show_bug.cgi?id=622084

1
  • is this an answer?
    – user595510
    Jan 21, 2017 at 23:03
1

I've found a way to make Ctrl+C work as excepted and quit the application. Insert this in your launcher script (PROJECT_ROOT/bin/yourapp)

import signal
# ... 
signal.signal(signal.SIGINT, signal.SIG_DFL)
# ... 
Gtk.main()

I've applied this method on my Python + Gtk3 project and haven't had any issue with it.

You must log in to answer this question.