389 |
self.solver_engine.set_submenu(self.solver_engine_menu) |
self.solver_engine.set_submenu(self.solver_engine_menu) |
390 |
self.solver_engine_menu_dict = {} |
self.solver_engine_menu_dict = {} |
391 |
_fmi = None |
_fmi = None |
|
_qrslv = None |
|
392 |
for _s in _slvlist: |
for _s in _slvlist: |
393 |
_mi = gtk.RadioMenuItem(_fmi,_s.getName(),False) |
_mi = gtk.RadioMenuItem(_fmi,_s.getName(),False) |
394 |
if _fmi==None: |
if _fmi==None: |
398 |
self.solver_engine_menu.append(_mi) |
self.solver_engine_menu.append(_mi) |
399 |
self.solver_engine_menu_dict[_s.getName()]=_mi |
self.solver_engine_menu_dict[_s.getName()]=_mi |
400 |
|
|
401 |
_mi = self.solver_engine_menu_dict.get('CMSlv') |
_mi = self.solver_engine_menu_dict.get('QRSlv') |
402 |
_mi.set_active(1) |
_mi.set_active(1) |
403 |
|
|
404 |
#-------- |
#-------- |
653 |
self.reporter.reportError("No model selected yet") |
self.reporter.reportError("No model selected yet") |
654 |
return |
return |
655 |
|
|
656 |
self.start_waiting("Solving...") |
self.start_waiting("Solving with %s..." % self.solver.getName()) |
657 |
|
|
658 |
if self.prefs.getBoolPref("SolverReporter","show_popup",True): |
if self.prefs.getBoolPref("SolverReporter","show_popup",True): |
659 |
reporter = PopupSolverReporter(self,self.sim.getNumVars()) |
reporter = PopupSolverReporter(self,self.sim.getNumVars()) |