# Comment-blocks
self.StyleSetSpec(wxSTC_P_COMMENTBLOCK, "fore:#7F7F7F,size:%(size)d" % faces)
# End of line where string is not closed
- self.StyleSetSpec(wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled,size:%(size)d" % faces)
+ self.StyleSetSpec(wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eol,size:%(size)d" % faces)
self.SetCaretForeground("BLUE")
- EVT_KEY_UP(self, self.OnKeyPressed)
+ EVT_KEY_DOWN(self, self.OnKeyPressed)
def OnKeyPressed(self, event):
kw.append("aaaaa")
kw.append("__init__")
kw.append("zzaaaaa")
- kw.append("zZaaaaa")
+ kw.append("zzbaaaa")
kw.append("this_is_a_longer_value")
kw.append("this_is_a_much_much_much_much_much_much_much_longer_value")
- #kw.sort()
+ kw.sort() # Python sorts are case sensitive
+ self.AutoCompSetIgnoreCase(false) # so this needs to match
- self.AutoCompSetIgnoreCase(true)
self.AutoCompShow(0, string.join(kw))
- #self.AutoCompSelect('br')
else:
event.Skip()