'mono' : 'Courier New',
'helv' : 'Arial',
'other': 'Comic Sans MS',
- 'size' : 8,
- 'size2': 6,
+ 'size' : 10,
+ 'size2': 8,
}
else:
faces = { 'times': 'Times',
self.SetCaretForeground("BLUE")
- EVT_KEY_UP(self, self.OnKeyPressed)
+ EVT_KEY_DOWN(self, self.OnKeyPressed)
def OnKeyPressed(self, event):
#st = string.join(lst)
#print len(st)
#self.AutoCompShow(0, st)
- self.AutoCompSetIgnoreCase(true)
- self.AutoCompShow(0, string.join(keyword.kwlist))
- self.AutoCompSelect('br')
+
+ kw = keyword.kwlist[:]
+ kw.append("zzzzzz")
+ kw.append("aaaaa")
+ kw.append("__init__")
+ 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() # Python sorts are case sensitive
+ self.AutoCompSetIgnoreCase(false) # so this needs to match
+
+ self.AutoCompShow(0, string.join(kw))
else:
event.Skip()
overview = """\
<html><body>
-Once again, no docs yet. <b>Sorry.</b> But <a href="data/stc.h">this</a>
+Once again, no docs yet. <b>Sorry.</b> But <a href="data/stc.h.html">this</a>
and <a href="http://www.scintilla.org/ScintillaDoc.html">this</a> should
be helpful.
</body><html>