792 # build a submenu containing function block types |
792 # build a submenu containing function block types |
793 bodytype = self.Controler.GetEditedElementBodyType(self.TagName) |
793 bodytype = self.Controler.GetEditedElementBodyType(self.TagName) |
794 pouname, poutype = self.Controler.GetEditedElementType(self.TagName) |
794 pouname, poutype = self.Controler.GetEditedElementType(self.TagName) |
795 classtype = self.Table.GetValueByName(row, "Class") |
795 classtype = self.Table.GetValueByName(row, "Class") |
796 |
796 |
797 #new_id = wx.NewId() |
797 new_id = wx.NewId() |
798 #AppendMenu(type_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=_("Array")) |
798 AppendMenu(type_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=_("Array")) |
799 #self.Bind(wx.EVT_MENU, self.VariableArrayTypeFunction, id=new_id) |
799 self.Bind(wx.EVT_MENU, self.VariableArrayTypeFunction, id=new_id) |
800 |
800 |
801 if classtype in ["Input", "Output", "InOut", "External", "Global"] or \ |
801 if classtype in ["Input", "Output", "InOut", "External", "Global"] or \ |
802 poutype != "function" and bodytype in ["ST", "IL"]: |
802 poutype != "function" and bodytype in ["ST", "IL"]: |
803 functionblock_menu = wx.Menu(title='') |
803 functionblock_menu = wx.Menu(title='') |
804 fbtypes = self.Controler.GetFunctionBlockTypes(self.TagName) |
804 fbtypes = self.Controler.GetFunctionBlockTypes(self.TagName) |