Пример #1
0
    rk4 = Rk.RKG_Generator(F=[f, g],
                           xi=0,
                           yi=[r, Pr],
                           h=dt,
                           Bt=Rk.Butcher_Tableau('Classic-4th'))


if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)

    MyUI = Ui()
    MyUI.Button_Run.clicked.connect(start_animation)
    MyUI.Button_Pause.clicked.connect(stop_animation)
    MyUI.Button_Redraw.clicked.connect(Redraw_fields)
    MyUI.canvas.mpl_connect("button_press_event", on_click)

    MyUI.txt_rc0.setValue(rc0)
    MyUI.txt_m.setValue(m)
    MyUI.txt_a.setValue(a)

    PrepareFigure()
    plot_fields()
    plot_points()

    timer = QtCore.QTimer()
    timer.setInterval(50)
    timer.timeout.connect(animate)

    MyUI.showMaximized()
    app.exec_()