pyqt通用模板之widget

'''
Created on 2019年4月6日

@author: bkd
'''
import sys
from PyQt5.uic import loadUi
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import  QWidget,QApplication
from .fileutil import get_file_realpath

class kdui2py(QWidget):
    def __init__ (self):
        super().__init__()
        loadUi(get_file_realpath("kdui2py.ui"), self)
    @pyqtSlot()
    def on_pb_convert_single_file_clicked(self):
        pass
def main():
    app = QApplication(sys.argv)
    win = kdui2py()
    win.show()
    sys.exit(app.exec_())
if __name__ == '__main__':
    main()

Author: bkdwei