Python PyQt5.QtWidgets.QApplication.quit() Examples

The following are code examples for showing how to use PyQt5.QtWidgets.QApplication.quit(). They are extracted from open source Python projects. You can vote up the examples you like or vote down the ones you don't like. You can also save this page to your account.

Example 1
Project: acbDecrypter   Author: Rieksee   File: window_main.py    (license) View Source Project 5 votes vote down vote up
def enter(self):
        if self.note is None:
            msg = QMessageBox()
            message = "?????????????"
            msg = msg.information(self, 'info', message,  QMessageBox.Ok, QMessageBox.Ok)
            if msg != QMessageBox.Ok:
                return
            self.key = self.key_default
        else:
            self.key = self.note[1]
        self.close()
        QApplication.quit() 
Example 2
Project: acbDecrypter   Author: Rieksee   File: window_main.py    (license) View Source Project 5 votes vote down vote up
def not_use_key(self):
        self.key = self.key_default
        self.close()
        QApplication.quit() 
Example 3
Project: acbDecrypter   Author: Rieksee   File: window_adxKeySelect.py    (license) View Source Project 5 votes vote down vote up
def enter(self):
        if self.note is None:
            msg = QMessageBox()
            message = "?????????????"
            msg = msg.information(self, 'info', message,  QMessageBox.Ok, QMessageBox.Ok)
            if msg != QMessageBox.Ok:
                return
            self.key = self.key_default
        else:
            self.key = self.note[1]
        self.close()
        QApplication.quit() 
Example 4
Project: acbDecrypter   Author: Rieksee   File: window_adxKeySelect.py    (license) View Source Project 5 votes vote down vote up
def not_use_key(self):
        self.key = ""
        self.close()
        QApplication.quit() 
Example 5
Project: acbDecrypter   Author: Rieksee   File: window_progress.py    (license) View Source Project 5 votes vote down vote up
def finish(self):
        QApplication.quit() 
Example 6
Project: gpvdm   Author: roderickmackenzie   File: status_icon.py    (license) View Source Project 5 votes vote down vote up
def callback_exit(self):
			QApplication.quit() 
Example 7
Project: inshack-2017   Author: HugoDelval   File: cctv_manager_standalone.py    (license) View Source Project 5 votes vote down vote up
def terminate(self):
        self.close()
        QApplication.quit() 
Example 8
Project: inshack-2017   Author: HugoDelval   File: cctv_manager_standalone.py    (license) View Source Project 5 votes vote down vote up
def sigint_handler(*args):
    """Handler for the SIGINT signal."""
    sys.stderr.write('\r')
    if QMessageBox.question(None, '', "Are you sure you want to quit?",
                            QMessageBox.Yes | QMessageBox.No,
                            QMessageBox.No) == QMessageBox.Yes:
        QApplication.quit() 
Example 9
Project: inshack-2017   Author: HugoDelval   File: activated_widget.py    (license) View Source Project 5 votes vote down vote up
def terminate(self):
        self.close()
        QApplication.quit() 
Example 10
Project: algorithm-trading-webapp   Author: softage0   File: kiwoom.py    (license) View Source Project 5 votes vote down vote up
def __init__(self, k_queue):
        super().__init__()
        self.S_SCREEN_NO = "0001"
        self.MARKET_LIST = {
            0: '??',
            3: 'ELW',
            4: '?????',
            5: '?????',
            6: '??',
            8: 'ETF',
            9: '??????',
            10: '???',
            30: '?3??'
        }

        self.q = k_queue
        self.qs = {
            'OnReceiveTrData': queue.Queue(),
            'OnReceiveRealData': queue.Queue(),
            'OnReceiveMsg': queue.Queue(),
            'OnReceiveChejanData': queue.Queue(),
            'OnEventConnect': queue.Queue(),
            'OnReceiveRealCondition': queue.Queue(),
            'OnReceiveTrCondition': queue.Queue(),
            'OnReceiveConditionVer': queue.Queue()
        }
        self.ocx = QAxWidget("KHOPENAPI.KHOpenAPICtrl.1")
        self.ocx.OnReceiveTrData[str, str, str, str, str, int, str, str, str].connect(self.OnReceiveTrData)
        self.ocx.OnReceiveRealData[str, str, str].connect(self.OnReceiveRealData)
        self.ocx.OnReceiveMsg[str, str, str, str].connect(self.OnReceiveMsg)
        self.ocx.OnReceiveChejanData[str, int, str].connect(self.OnReceiveChejanData)
        self.ocx.OnEventConnect[int].connect(self.OnEventConnect)
        self.ocx.OnReceiveRealCondition[str, str, str, str].connect(self.OnReceiveRealCondition)
        self.ocx.OnReceiveTrCondition[str, str, str, int, int].connect(self.OnReceiveTrCondition)
        self.ocx.OnReceiveConditionVer[int, str].connect(self.OnReceiveConditionVer)
        atexit.register(self.quit)

    ####################################################
    # Interface Methods
    #################################################### 
Example 11
Project: algorithm-trading-webapp   Author: softage0   File: kiwoom.py    (license) View Source Project 5 votes vote down vote up
def quit(self):
        """ Quit the server """

        self.disconnect_real_data(self.S_SCREEN_NO)
        QApplication.quit()