Re: [IronPython] Clearing context

2008-01-09 Thread Curt Hagenlocher
On Jan 9, 2008 2:45 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > > This is an important point, and I still don't think you have it exactly > right. When you say "including changes made by a reload", that really > should say "ONLY IF the module has been reloaded". Unless you reload it, > the "mym

Re: [IronPython] Clearing context

2008-01-09 Thread Tim Roberts
On Wed, 9 Jan 2008 09:49:29 -0800, "Curt Hagenlocher" <[EMAIL PROTECTED]> wrote: On Jan 9, 2008 9:42 AM, Lee Culver <[EMAIL PROTECTED]> wrote: > >> class MyClass(SomeNameSpace.IMyInterface): >> def SomeFunc(self): >> from mymod import myfunc >> myfunc() >> >> That wa

Re: [IronPython] Clearing context

2008-01-09 Thread Slide
On Jan 9, 2008 10:42 AM, Lee Culver <[EMAIL PROTECTED]> wrote: > > > > > I don't know the answer to the original question, but this is not exactly > correct: > > > > > Another alternative would be to change your code to look like this: > > > > class MyClass(SomeNameSpace.IMyInterface): > > def

Re: [IronPython] [python] Re: Getting window properties

2008-01-09 Thread Srivatsn N
The pop-up window might be one level below the top-level in the UI tree. You can use UISpy (http://msdn2.microsoft.com/en-us/library/ms727247.aspx) to inspect the UI Tree hierarchy for UIAutomation and also the properties that are exposed. The text in the popup should also be exposed - generally

Re: [IronPython] Clearing context

2008-01-09 Thread Curt Hagenlocher
On Jan 9, 2008 9:42 AM, Lee Culver <[EMAIL PROTECTED]> wrote: > >> class MyClass(SomeNameSpace.IMyInterface): >> def SomeFunc(self): >> from mymod import myfunc >> myfunc() >> >> That way, the import gets re-run each time you run SomeFunc, and >> you'll always get the latest ver

Re: [IronPython] Clearing context

2008-01-09 Thread Lee Culver
I don't know the answer to the original question, but this is not exactly correct: Another alternative would be to change your code to look like this: class MyClass(SomeNameSpace.IMyInterface): def SomeFunc(self): from mymod import myfunc myfunc() That way, the import gets r

Re: [IronPython] Clearing context

2008-01-09 Thread Curt Hagenlocher
On Jan 9, 2008 8:54 AM, Slide <[EMAIL PROTECTED]> wrote: > > If I change this file and try reloading my script, it takes the > modifications just fine and runs the new code. If I modify mymod, but > not the main script, I get the old code from mymod run. Is there > something I can do to force it to

[IronPython] Clearing context

2008-01-09 Thread Slide
I have embedded IronPython into my C# app to use as a scripting engine. I am having a problem with reloading the context when a dependent module changes. What I mean is I have something like the following as my main script. from mymod import myfunc class MyClass(SomeNameSpace.IMyInterface): d

Re: [IronPython] wxPython and Ironpython

2008-01-09 Thread Sanghyeon Seo
2008/1/9, jane janet <[EMAIL PROTECTED]>: > The important reason is my big old application was written in Python using > wxPython to create GUI. > But I have to use IronPython because my new application must use .NET > library. > How can I integrate these stuff. > Please tell me what is the bes

[IronPython] wxPython and Ironpython

2008-01-09 Thread jane janet
Dear all, I was wondering if IronPython can use wxPython. The important reason is my big old application was written in Python using wxPython to create GUI. But I have to use IronPython because my new application must use .NET library. How can I integrate these stuff. Please tell me what is the

Re: [IronPython] [python] Re: Getting window properties

2008-01-09 Thread Marcus Patino Pan
Im back!!! What do I need to change in the example to get the active window?? Im using an example where word is opened and then the document is wrote in then is attempted to be saved. The example below finds the parent window "Document1 - Mircosoft Word" but wont find the pop up window asking if y

Re: [IronPython] [python] Re: Getting window properties

2008-01-09 Thread Marcus Patino Pan
That's brilliant!! Thanks everyone for your help. I'll probably be back for more advice soon. Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: 08 January 2008 19:17 To: Discussion of IronPython Subject: Re: [IronPython] [py