<div>Thank you Martin. That explains the "from avalon import *" part of his demo as well :)</div>
<div> </div>
<div>Stokes<br><br> </div>
<div><span class="gmail_quote">On 11/3/05, <b class="gmail_sendername">Martin Maly</b> <<a href="mailto:Martin.Maly@microsoft.com">Martin.Maly@microsoft.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2">The reason for this is that the console thread is waiting for console input and does not pump messages (necessary to redraw the windows).</font>
</span></div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2">Check out the tutorial we shipped with IronPython 0.9.4. There is file "avalon.py" in the tutorial directory. in your console do:</font>
</span></div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2">from avalon import *</font></span></div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2">The avalon.py sets up the console to run message pump and things will work.</font></span></div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Verdana" color="#800000" size="2">Martin</font></span></div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users-bounces@lists.ironpython.com" target="_blank">
users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>Michael Stokesbary<br><b>Sent:</b> Thursday, November 03, 2005 9:16 PM<br><b>To:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@lists.ironpython.com" target="_blank">
users@lists.ironpython.com</a><br><b>Subject:</b> [IronPython] Interactive WinFX design with IronPython<br></font><br> </div>
<div><span class="e" id="q_10759b799e643a02_1">
<div></div>
<div>Hey all -</div>
<div> </div>
<div>I was just wondering if anyone got the chance to see Jim's PDC 05 presentation dealing with the .NET CLR and dynamic languages. In the presentation, he was able to interactively create a WinFX window and add components to it on the fly. I have tried doing this myself only to run in to issues. I do the following:
</div>
<div> </div>
<div>w = System.Windows.Window()</div>
<div>w.Show()</div>
<div> </div>
<div>And after doing this, the window does appear, but it seems to be in a blocking state. Then as I add components to it, nothing gets rendered. In Jim's presentation, he was able to call w.Show(), then add a button, then resize the window and just modify it on the fly. Has anyone else been able to do something like this? I am using IronPython
0.9.4 on the .NET framework version 2.0.50215.322 and the September release of WinFX. Yes, I can create the whole window and add all the components and then call ShowDialog() and all works fine (the command prompt is blocked, but at least I can interact with the window). If I just call .Show(), the command prompt is still active, but the window is useless.
</div>
<div> </div>
<div>Any ideas?</div>
<div> </div>
<div>Stokes</div></span></div><br>_______________________________________________<br>users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@lists.ironpython.com">users@lists.ironpython.com
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br>
<br></blockquote></div><br>