editors/CodeFileEditor.py
changeset 1136 5fac491d3a0e
parent 1126 26baa0ae9fd7
child 1138 cf2a6a7c87e8
equal deleted inserted replaced
1135:519a21ddbc40 1136:5fac491d3a0e
   301             if event.ShiftDown():
   301             if event.ShiftDown():
   302                 pass
   302                 pass
   303             # Code completion
   303             # Code completion
   304             else:
   304             else:
   305                 self.AutoCompSetIgnoreCase(False)  # so this needs to match
   305                 self.AutoCompSetIgnoreCase(False)  # so this needs to match
   306 
   306                 
   307                 # Images are specified with a appended "?type"
   307                 keywords = self.KEYWORDS + [var["Name"]
   308                 self.AutoCompShow(0, " ".join([word + "?1" for word in self.KEYWORDS]))
   308                                             for var in self.Controler.GetVariables()]
       
   309                 keywords.sort()
       
   310                 self.AutoCompShow(0, " ".join(keywords))
   309         else:
   311         else:
   310             event.Skip()
   312             event.Skip()
   311 
   313 
   312     def OnKillFocus(self, event):
   314     def OnKillFocus(self, event):
   313         self.AutoCompCancel()
   315         self.AutoCompCancel()