belred at gmail.com
Fri Mar 23 19:48:00 CET 2007
i just wrote my first ipy script and i have some questions.
import System.Windows.Forms as WinForms
WinForms.MessageBox.Show('Hello', 'Hello World')
if __name__ == '__main__':
when i execute the following
c:\> ipy -X:SaveAssemblies hello.py
a hello.exe file is generated and i can successfully execute it.
but when i compile with pyc as follows:
c:\> ipy pyc /main:hello.py
c:\> ipy pyc /main:hello.py /target:winexe
it generates hello.exe, but the program doesn't run (the MessageBox doesn't
display). i even tried explicitly adding /r:System.Windows.Forms without
luck. what am i doing wrong?
More information about the Ironpython-users