i writting my own editor but i want that all keyword appear in the
autocomplete list how i do that?
i writting my own editor but i want that all keyword appear in the
autocomplete list how i do that?
Hi,
for python, you can try:
import keyword
keyword.kwlist
['and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del',
'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global',
'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print',
'raise', 'return', 'try', 'while', 'with', 'yield']
(as of py 2.7.1)
you may also need to add some conventional items manually "True",
"False","None", "self" ...
Not sure, what you need to display for wxpython in this context (if
you need not only the kewords but all currently available names,
dir(...) may help.).
You may check a wxpython sample for StyledTextCtrl_2 for a simple
code completion in stc.
hth,
vbr
ยทยทยท
2011/1/23 iozk_Live <iozk117@gmail.com>: