Example #1
0
def kill():
    PROCNAME = 'chrome.exe'
    messageBox(u'Chrome has encountered some problem. \n Needs to close', u'Chrome Crash')
    for proc in psutil.process_iter():
        try:
            if proc.name() == PROCNAME:
                proc.kill()
        except psutil.AccessDenied:
            pass
def select():
    if utils.ui_setting.askYoutube.isChecked():
        value = utils.messageBox(tr_(u'Youtube format?'),
                                 icon=QtGui.QMessageBox.Question,
                                 buttons=[tr_(u'MP4 (동영상)'),
                                          tr_(u'MP3 (음원)')])
        format = ['mp4', 'mp3'][value]
        return format