Update PyTop.py
This commit is contained in:
parent
3dbba19f28
commit
79ed46f889
@ -11,12 +11,15 @@ from gi.repository import GLib
|
|||||||
# Python imports
|
# Python imports
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
|
from setproctitle import setproctitle
|
||||||
|
|
||||||
# Application imports
|
# Application imports
|
||||||
from utils import Settings
|
from utils import Settings
|
||||||
from signal_classes import CrossClassSignals, GridSignals
|
from signal_classes import CrossClassSignals, GridSignals
|
||||||
|
|
||||||
|
|
||||||
class Main:
|
class Main:
|
||||||
|
setproctitle('Pytop')
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, gtk.main_quit)
|
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, gtk.main_quit)
|
||||||
faulthandler.enable() # For better debug info
|
faulthandler.enable() # For better debug info
|
||||||
|
Loading…
Reference in New Issue
Block a user