Package windSimSuite :: Package interface :: Module tower
[hide private]

Source Code for Module windSimSuite.interface.tower

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # 
 4  # This file is part of MBDyn sim suite. 
 5  # Copyright (C) 2007 André ESPAZE, as part of a Master thesis supervised by 
 6  # Martin O.L.Hansen (DTU) and Nicolas Chauvat (Logilab) 
 7   
 8  # MBDyn sim suite is free software; you can redistribute it and/or modify 
 9  # it under the terms of the GNU General Public License as published by 
10  # the Free Software Foundation; either version 2 of the License, or 
11  # (at your option) any later version. 
12  # 
13  # This program is distributed in the hope that it will be useful, 
14  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  # GNU General Public License for more details. 
17  # 
18  # You should have received a copy of the GNU General Public License 
19  # along with this program; if not, write to the Free Software 
20  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
21  # 
22  """The tower definition in a graphical environment. A module 
23  in early development, the base objects are now doing all the 
24  work. 
25  """ 
26  from windSimSuite.interface.common import WithNodesAndElemsMenu 
27  from windSimSuite.interface.common import GobjectWithNodesAndElems 
28   
29  from windSimSuite.tower import Tower as TowerBase 
30   
31  from mbdyn.interface.nodes import NODE_CLASS 
32   
33   
34 -class TowerMenu(WithNodesAndElemsMenu):
35 """The tower menu""" 36 pass
37 38
39 -class Tower(TowerBase, GobjectWithNodesAndElems):
40 """The GTK tower 41 """ 42
43 - def __init__(self, name="tower"):
44 TowerBase.__init__(self, name) 45 GobjectWithNodesAndElems.__init__(self) 46 self.set_node_class(NODE_CLASS) 47 self.menu_type = "tower"
48