Fixed weights and simulation tools menus

This commit is contained in:
Jose Luis Cercós pita
2012-07-08 14:30:00 +02:00
parent aee451e7dd
commit ca7584cb40

View File

@@ -49,13 +49,13 @@ class ShipWorkbench ( Workbench ):
list = ["Ship_LoadExample", "Ship_CreateShip", "Ship_OutlineDraw", "Ship_AreasCurve", "Ship_Hydrostatics"]
self.appendMenu("Ship design",list)
list = ["Ship_Weights", "Ship_CreateTank", "Ship_GZ"]
self.appendToolbar("Weights",list)
self.appendMenu("Weights",list)
try:
import pyopencl
except ImportError:
pass
else:
list = ["Ship_CreateSim", "Ship_RunSim", "Ship_StopSim"]
self.appendToolbar("Simulation",list)
self.appendMenu("Simulation",list)
Gui.addWorkbench(ShipWorkbench())