objdictgen/subindextable.py
changeset 622 f0935accb93b
parent 608 daa1e1c3fba4
child 741 b1a73ddc514b
equal deleted inserted replaced
621:609aff93810a 622:f0935accb93b
   746                         self.SubindexGridMenu.FindItemByPosition(0).Enable(True)
   746                         self.SubindexGridMenu.FindItemByPosition(0).Enable(True)
   747                         self.SubindexGridMenu.FindItemByPosition(1).Enable(True)
   747                         self.SubindexGridMenu.FindItemByPosition(1).Enable(True)
   748                     else:
   748                     else:
   749                         self.SubindexGridMenu.FindItemByPosition(0).Enable(False)
   749                         self.SubindexGridMenu.FindItemByPosition(0).Enable(False)
   750                         self.SubindexGridMenu.FindItemByPosition(1).Enable(False)
   750                         self.SubindexGridMenu.FindItemByPosition(1).Enable(False)
   751                     if self.Table.GetColLabelValue(event.GetCol()) == "value":
   751                     if self.Table.GetColLabelValue(event.GetCol(), False) == "value":
   752                         showpopup = True
   752                         showpopup = True
   753                         self.SubindexGridMenu.FindItemByPosition(3).Enable(True)
   753                         self.SubindexGridMenu.FindItemByPosition(3).Enable(True)
   754                     else:
   754                     else:
   755                         self.SubindexGridMenu.FindItemByPosition(3).Enable(False)
   755                         self.SubindexGridMenu.FindItemByPosition(3).Enable(False)
   756                     if showpopup:
   756                     if showpopup:
   757                         self.PopupMenu(self.SubindexGridMenu)
   757                         self.PopupMenu(self.SubindexGridMenu)
   758         elif self.Table.GetColLabelValue(event.GetCol()) == "value":
   758         elif self.Table.GetColLabelValue(event.GetCol(), False) == "value":
   759             selected = self.IndexList.GetSelection()
   759             selected = self.IndexList.GetSelection()
   760             if selected != wx.NOT_FOUND:
   760             if selected != wx.NOT_FOUND:
   761                 index = self.ListIndex[selected]
   761                 index = self.ListIndex[selected]
   762                 if self.Manager.IsCurrentEntry(index):
   762                 if self.Manager.IsCurrentEntry(index):
   763                     infos = self.Manager.GetEntryInfos(index)
   763                     infos = self.Manager.GetEntryInfos(index)