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: [email protected] [mailto:[email protected]] On Behalf Of Kristian Jaksch Sent: Monday, May 04, 2009 7:25 AM To: [email protected] 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 [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
