Skip to content

Commit

Permalink
WIP: try out letting the root cs alone, tear down guest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Aug 3, 2021
1 parent 9fa7b54 commit 56aa7e5
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions piker/ui/_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
Qt main window singletons and stuff.
"""
import os
import signal
# import os
# import signal
import time
from typing import Callable, Optional, Union
import uuid

from pyqtgraph import QtGui
from PyQt5 import QtCore, QtWidgets
from pyqtgraph import QtGui, QtCore
from PyQt5.QtWidgets import QLabel, QStatusBar

from ..log import get_logger
Expand Down Expand Up @@ -179,15 +178,17 @@ def mode_label(self) -> QtGui.QLabel:

return self._status_label

def closeEvent(
self,
event: QtGui.QCloseEvent,
) -> None:
"""Cancel the root actor asap.
# def closeEvent(
# self,

"""
# raising KBI seems to get intercepted by by Qt so just use the system.
os.kill(os.getpid(), signal.SIGINT)
# event: QtGui.QCloseEvent,

# ) -> None:
# '''Cancel the root actor asap.

# '''
# # raising KBI seems to get intercepted by by Qt so just use the system.
# os.kill(os.getpid(), signal.SIGINT)

@property
def status_bar(self) -> QStatusBar:
Expand Down

0 comments on commit 56aa7e5

Please sign in to comment.