<div dir="ltr">Same code on IP 1.1.2 outputs:<div><div>699</div><div>696</div><div><br></div><div>Cheers,</div><div>Davy</div><br><div class="gmail_quote">On Wed, Oct 8, 2008 at 7:34 AM, Davy Mitchell <span dir="ltr">&lt;<a href="mailto:daftspaniel@gmail.com">daftspaniel@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hi All,<div><br></div><div>Basic Repro is...</div><div><br></div><div>---------form.py-------</div><div>
<div>import clr</div><div>clr.AddReference(&#39;System.Windows.Forms&#39;)</div><div>from System.Windows.Forms import *</div>
<div>print len(dir(Form))</div><div>---------test.py--------</div><div><div>from forms import *</div><div>print len(dir(Form))</div><div><br></div><div>Output:</div><div>538</div></div></div><div>443</div><div><br></div>
<div>
My real world case is a subclass of Form is in another module. The module that uses it tries to do mainform.KeyDown += self.DoSomething and fails as KeyDown has vanished.</div><div>Yet if you copy and paset the subclass Form code into the same file it works!</div>

<div><br></div><div>Forgive me if I am missing something obvious in the import mechanism :-)</div><div><br></div><div>Thanks,</div><div>Davy Mitchell</div></div>
</blockquote></div><br></div></div>