[IronPython] Application?

Dino Viehland dinov at exchange.microsoft.com
Wed Aug 1 16:14:53 PDT 2007


This works for me:

>>> import System
>>> import clr
>>> clr.AddReference('System.Windows.Forms')
>>> from System.Windows.Forms import Application
>>> dir(Application)
['AddMessageFilter', 'AllowQuit', 'ApplicationExit', 'CommonAppDataPath', 'CommonAppDataRegistry', 'CompanyName', 'CurrentCulture', 'CurrentInputLanguage',
 'DoEvents', 'EnableVisualStyles', 'EnterThreadModal', 'Equals', 'ExecutablePath', 'Exit', 'ExitThread', 'FilterMessage', 'Finalize', 'GetHashCode', 'GetTy
pe', 'Idle', 'LeaveThreadModal', 'LocalUserAppDataPath', 'MakeDynamicType', 'MemberwiseClone', 'MessageLoop', 'MessageLoopCallback', 'OleRequired', 'OnThre
adException', 'OpenForms', 'ProductName', 'ProductVersion', 'RaiseIdle', 'Reduce', 'ReferenceEquals', 'RegisterMessageLoop', 'RemoveMessageFilter', 'Render
WithVisualStyles', 'Restart', 'Run', 'SafeTopLevelCaptionFormat', 'SetCompatibleTextRenderingDefault', 'SetSuspendState', 'SetUnhandledExceptionMode', 'Sta
rtupPath', 'ThreadException', 'ThreadExit', 'ToString', 'UnregisterMessageLoop', 'UseWaitCursor', 'UserAppDataPath', 'UserAppDataRegistry', 'VisualStyleSta
te', '__class__', '__doc__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', 'add_ApplicationExit', 'add_EnterThreadModal',
 'add_Idle', 'add_LeaveThreadModal', 'add_ThreadException', 'add_ThreadExit', 'remove_ApplicationExit', 'remove_EnterThreadModal', 'remove_Idle', 'remove_L
eaveThreadModal', 'remove_ThreadException', 'remove_ThreadExit']
>>> Application.CommonAppDataPath
'C:\\ProgramData\\Microsoft\\IronPython\\1.1'
>>>






-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Davy Mitchell
Sent: Wednesday, August 01, 2007 3:34 PM
To: Discussion of IronPython
Subject: [IronPython] Application?

Is there a way to use the Application namespace in IronPython?

Hoping to use methods like Application.CommonAppDataPath but they all
seem assembly focussed?

Thanks,
Davy

--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


More information about the Users mailing list