Update PyTop.py

This commit is contained in:
Maxim 2019-09-02 16:37:25 -05:00 committed by GitHub
parent 3dbba19f28
commit 79ed46f889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,12 +11,15 @@ from gi.repository import GLib
# Python imports
import inspect
from setproctitle import setproctitle
# Application imports
from utils import Settings
from signal_classes import CrossClassSignals, GridSignals
class Main:
setproctitle('Pytop')
def __init__(self):
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, gtk.main_quit)
faulthandler.enable() # For better debug info