controls/VariablePanel.py
changeset 1742 92932cd370a4
parent 1740 b789b695b5c6
child 1744 69dfdb26f600
equal deleted inserted replaced
1741:dd94b9a68c61 1742:92932cd370a4
   509 
   509 
   510             # these condense the ColAlignements list
   510             # these condense the ColAlignements list
   511             l = wx.ALIGN_LEFT
   511             l = wx.ALIGN_LEFT
   512             c = wx.ALIGN_CENTER
   512             c = wx.ALIGN_CENTER
   513 
   513 
   514             #                      Num   Name    Class   Type    Loc     Init    Option   Doc
   514             #                        Num   Name    Class   Type    Loc     Init    Option   Doc
   515             self.ColSizes       = [40,   80,     100,    80,     110,    120,    100,     160]
   515             self.ColSizes         = [40,   80,     100,    80,     110,    120,    100,     160]
   516             self.ColAlignements = [c,    l,      l,      l,      l,      l,      l,       l]
   516             self.ColAlignements   = [c,    l,      l,      l,      l,      l,      l,       l]
   517             self.ColFixedSizeFlag=[True, False,  True,   False,  True,   True,   True,    False]
   517             self.ColFixedSizeFlag = [True, False,  True,   False,  True,   True,   True,    False]
   518 
   518 
   519         else:
   519         else:
   520             # this is an element that cannot have located variables
   520             # this is an element that cannot have located variables
   521             self.Table = VariableTable(self, [], GetVariableTableColnames(False))
   521             self.Table = VariableTable(self, [], GetVariableTableColnames(False))
   522 
   522 
   531 
   531 
   532             # these condense the ColAlignements list
   532             # these condense the ColAlignements list
   533             l = wx.ALIGN_LEFT
   533             l = wx.ALIGN_LEFT
   534             c = wx.ALIGN_CENTER
   534             c = wx.ALIGN_CENTER
   535 
   535 
   536             #                      Num   Name    Class   Type    Init    Option   Doc
   536             #                        Num   Name    Class   Type    Init    Option   Doc
   537             self.ColSizes       = [40,   80,     100,    80,     120,    100,     160]
   537             self.ColSizes         = [40,   80,     100,    80,     120,    100,     160]
   538             self.ColAlignements = [c,    l,      l,      l,      l,      l,       l]
   538             self.ColAlignements   = [c,    l,      l,      l,      l,      l,       l]
   539             self.ColFixedSizeFlag=[True, False,  True,   False,  True,   True,    False]
   539             self.ColFixedSizeFlag = [True, False,  True,   False,  True,   True,    False]
   540 
   540 
   541         self.PanelWidthMin = sum(self.ColSizes)
   541         self.PanelWidthMin = sum(self.ColSizes)
   542 
   542 
   543         self.ElementType = element_type
   543         self.ElementType = element_type
   544         self.BodyType = None
   544         self.BodyType = None