[IronPython] How to reference enumeration in System.Windows.Input

Bruce Bromberek bruce.bromberek at gmail.com
Tue Mar 9 05:20:06 CET 2010

I can't seem to figure out how to add a reference to System.Windows.Input
now that it is part of the PresentationCore assembly.  Specifically I'm
trying to check for the enterkey, but I'm forced to do this:

if str(e.Key) == "Return":

instead of

if e.Key == Key.Enter:

I'm using Ironpython 2.6.1 RC1 with .Net 3.5.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100308/e8d75168/attachment.html>

More information about the Ironpython-users mailing list