objdictgen/subindextable.py
changeset 310 1975e546178b
parent 299 506f9700b9fb
child 312 70f96abd8ecd
equal deleted inserted replaced
309:5d08887347a9 310:1975e546178b
   642             if selected != wx.NOT_FOUND:
   642             if selected != wx.NOT_FOUND:
   643                 index = self.ListIndex[selected]
   643                 index = self.ListIndex[selected]
   644                 if self.Manager.IsCurrentEntry(index):
   644                 if self.Manager.IsCurrentEntry(index):
   645                     showpopup = False
   645                     showpopup = False
   646                     infos = self.Manager.GetEntryInfos(index)
   646                     infos = self.Manager.GetEntryInfos(index)
   647                     if index >= 0x2000 and infos["struct"] & OD_MultipleSubindexes or infos["struct"] & OD_IdenticalSubindexes:
   647                     if 0x2000 <= index <= 0x5FFF and infos["struct"] & OD_MultipleSubindexes or infos["struct"] & OD_IdenticalSubindexes:
   648                         showpopup = True
   648                         showpopup = True
   649                         self.SubindexGridMenu.FindItemByPosition(0).Enable(True)
   649                         self.SubindexGridMenu.FindItemByPosition(0).Enable(True)
   650                         self.SubindexGridMenu.FindItemByPosition(1).Enable(True)
   650                         self.SubindexGridMenu.FindItemByPosition(1).Enable(True)
   651                     else:
   651                     else:
   652                         self.SubindexGridMenu.FindItemByPosition(0).Enable(False)
   652                         self.SubindexGridMenu.FindItemByPosition(0).Enable(False)