FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

event.Control as foo in ironpython · Issue #611 · pythonnet/pythonnet · GitHub

Repository navigation

event.Control as foo in ironpython #611

Closed

Description

Environment

  • Pythonnet version: latest
  • Python version: 3.6.4
  • Operating System: WinOS

Details

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

  1. den-run-ai commented on Jan 29, 2018

    Contributor

    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

  2. filmor commented on Jun 14, 2022

    Member

    This can't be supported, we can't change Python's syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL