pyqt通用模板之启动器

#!/usr/bin/env python3
#-*- coding:utf-8 -*-
'''
本地调试时,python3 main.py即可启动本程序

启动失败时,会使用tkinter的messagebox报错
Created on 2019年4月5日
@author: bkd
'''
from tkinter import messagebox

if __name__ == '__main__':
    try:
        from kdAutoTeamviewer.kdAutoTeamviewer import main
        main()
    except Exception as e:
        messagebox.showerror("系统异常", str(e))

Author: bkdwei