def __init__(self, net, parent=None):
super(runppOptions, self).__init__(parent=parent)
uic.loadUi('resources/ui/runpp_options.ui', self)
self.net = net
self.inits = {"flat": self.InitFlat, "dc": self.InitDC, "results": self.InitResults,
"auto":self.InitAuto}
self.algos = {"nr": self.NewtonRaphson, "bf": self.BackwardForward}
self.voltage_angles = {True: self.VoltageAnglesTrue, False: self.VoltageAnglesFalse,
"auto": self.VoltageAnglesAuto}
self.set_parameters(**self.net._runpp_options)
self.ok_button.clicked.connect(partial(self.exit_window, True, False))
self.cancel_button.clicked.connect(partial(self.exit_window, False, False))
self.run_button.clicked.connect(partial(self.exit_window, True, True))
self.show()
评论列表
文章目录