0
0 комментариев

Версия Python 3.7.3, Windows

[apcode language=»python»]

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(563, 405)
         self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
     def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
 class Form(QtWidgets.QWidget, Ui_Form):
    def __init__(self, parent=None):
        super(Form, self).__init__(parent)
        self.setupUi(self)
 class Main(QtWidgets.QWidget, Ui_Start): 
    def __init__(self, parent=None):
        super(Main, self).__init__(parent)
        self.setupUi(self)
    def animation(self):
        self.an = Form()
        self.an.show()

[/apcode]

как в функцию animation добавить gif?

Решенный вопрос
Добавить комментарий