[IronPython] How to get access to enum?
Kristian Jaksch
kristian.jaksch at gmail.com
Mon May 4 17:20:46 CEST 2009
Yes, I found it just before you replied. Thanks anyway!
2009/5/4 Lepisto, Stephen P <stephen.p.lepisto at intel.com>:
> I believe you just need to import the enumeration:
>
> from <module> import Visibility
>
> where <module> is the module containing the definition of the enumeration.
>
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Kristian Jaksch
> Sent: Monday, May 04, 2009 7:25 AM
> To: users at lists.ironpython.com
> Subject: [IronPython] How to get access to enum?
>
> How can I get access to enums in IronPython?
>
> For example, when running IronPython + Silverlight I need access to
> the Visibility enum:
>
> btnMaxPlot.Visibility = Visibility.Collapsed
>
> This results in an error:
> "NameError: name 'Visibility' is not defined"
>
> Thanks for help!
>
> /Kristian
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
More information about the Ironpython-users
mailing list