I like to have an autocomplete textbox in datagridview with editingshowing event handler. in c# event argument in function event.Control can be morph to a textbox with that event. as e.Control as Textbox but in ironpython I received a invalid because I use as keyword in winform expression and not in import expression.
how can I achieve the same functionality of this? TODO
What commands did you run?
python dgv.py
- If there was a crash, please include the traceback here.
file dgv.py line 70
autotext = e.Control as Textbox
SystaxError: unexpected token 'as'
Activity
den-run-ai commented on Jan 29, 2018
For as keyword we need to support this ironpython syntax:
https://stackoverflow.com/a/1440427/2230844
This is part of a bigger meta-issue:
#437
filmor commented on Jun 14, 2022
This can't be supported, we can't change Python's syntax.