Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

Update Wpf UI while running IronPython #514

Open Joliettte opened 1 year ago

Joliettte commented 1 year ago

I am using IronPython in WPF App to run a Python script. The script has several classes and methods. To know which step is being executed, I use the "Print" command as output info. This info is then displayed in TextBox via Binding. This works also quite well. But the problem is that the UI is only updated at the end of the script(I get the output info from Print). It seems that IronPython blocks everything in WPF and the class is not very helpful.

Can anyone tell how to solve such a problem?