-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exe genereted by ipyc says "the calling thread must be sta because many ui components require" #1310
Comments
You probably need to use
|
but for the original code, the event prints text in dos windows. If GUI+console window are desired, how can we modify the code to let both |
Hmm, I'm not seeing any command-line arguments that would enable this. I guess ipyc would need to be modified to add the STAThread attirbute to the entry point. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used the following code with latest ironpython2 and ironpython3 release.
no matter
IronPython.2.7.12\net45\ipy.exe gui_wpf.py
orIronPython.3.4.0-alpha1\net46\ipy.exe gui_wpf.py
can run without problem.Then I use
ipyc
to create exe file withI copy
gui_wpf.exe
,form.xaml
,IronPython.2.7.12\lib
toIronPython.2.7.12\net45\
or
copy
gui_wpf.exe
,form.xaml
,IronPython.3.4.0-alpha1\lib
toIronPython.3.4.0-alpha1\net46\
.However when I run
gui_wpf.exe
in the dos prompt, I gethow to fix it? Thanks
the following code is actually
copied
from https://stackoverflow.com/questions/47953638/button-click-event-on-ironpython-wpfand
form.xaml
isThe text was updated successfully, but these errors were encountered: