equal
deleted
inserted
replaced
798 event.Skip() |
798 event.Skip() |
799 |
799 |
800 def ClearLocation(self, row, col, value): |
800 def ClearLocation(self, row, col, value): |
801 if self.Values[row].Location != '': |
801 if self.Values[row].Location != '': |
802 if self.Table.GetColLabelValue(col, False) == 'Class' and value not in ["Local", "Global"] or \ |
802 if self.Table.GetColLabelValue(col, False) == 'Class' and value not in ["Local", "Global"] or \ |
803 self.Table.GetColLabelValue(col, False) == 'Type' and not self.Parent.Controler.IsLocatableType(value): |
803 self.Table.GetColLabelValue(col, False) == 'Type' and not self.Controler.IsLocatableType(value): |
804 self.Values[row].Location = '' |
804 self.Values[row].Location = '' |
805 self.RefreshValues() |
805 self.RefreshValues() |
|
806 self.SaveValues() |
806 |
807 |
807 def BuildStdIECTypesMenu(self,type_menu): |
808 def BuildStdIECTypesMenu(self,type_menu): |
808 # build a submenu containing standard IEC types |
809 # build a submenu containing standard IEC types |
809 base_menu = wx.Menu(title='') |
810 base_menu = wx.Menu(title='') |
810 for base_type in self.Controler.GetBaseTypes(): |
811 for base_type in self.Controler.GetBaseTypes(): |