# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'app.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(329, 240) self.AnalogClock = QwtAnalogClock(Form) self.AnalogClock.setGeometry(QtCore.QRect(60, 20, 200, 200)) self.AnalogClock.setLineWidth(4) self.AnalogClock.setObjectName("AnalogClock") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "PyQt + PyQwt : Timer + \"analogClock\"")) from PyQt5.Qwt import QwtAnalogClock # modif manuelle if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Form = QtWidgets.QWidget() ui = Ui_Form() ui.setupUi(Form) Form.show() sys.exit(app.exec_())