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

Source Code for Module windSimSuite.interface.sections

 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 section definition in a graphical environment. A module 
23  still in early development, until now only the airfoil data 
24  can be plotted on a section. 
25  """ 
26  import gtk 
27   
28  from windSimSuite.sections import Section as SectionBase 
29  from mbdyn.interface.common import MenuBase 
30   
31  DESC = {} 
32   
33  DESC["pylab"] = [\ 
34  ("airfoil", gtk.MenuItem("_Plot _Airfoil")) 
35  ] 
36   
37   
38 -class SectionMenu(MenuBase):
39 """The section menu 40 """ 41
42 - def __init__(self):
43 MenuBase.__init__(self, DESC, build=True)
44 45
46 -class Section(SectionBase):
47 """The GTK section. Able to plot its airfoil 48 data. 49 """ 50
51 - def __init__(self):
52 SectionBase.__init__(self) 53 self.menu_type = "section" 54 self.feature_keys = ["airfoil"]
55