What am I doing wrong? I have a form with two text boxes and a button. When
I type, "tb.clear()" into the first textbox and click the button, I get the
a MissingMemberException which states, "'TextBox' object has no attribute
'clear'".
public partial class Form1 : Form
{
public st
I am very sorry! I just noticed this:
ScriptDomainManager.CurrentMan
ager.Host.DefaultModule.SetVariable("SomeName",
SomeObject);
SomeObject is then available to user code as SomeName...
That is exactly what I want to do!!!
Thank you very much!
On 10/18/07, JoeSox <[EMAIL PROTECTED]> wrote:
On 10/18/07, Joshua J. Pearce <[EMAIL PROTECTED]> wrote:
> My application is ASP.NET, I hardly think integrating CPython is going to be
> a better choice.
You never mentioned you were using ASP.NET. You have mentioned C#.
> Is is possible to 'expose' c# methods that exist in the same scope as an
My application is ASP.NET, I hardly think integrating CPython is going to be
a better choice.
I really hope I can be clear this time and not encourage suggestions to do
all kinds of other stuff that what I am asking about, so here it goes:
Is is possible to 'expose' c# methods that exist in the s
On 10/18/07, Joshua J. Pearce <[EMAIL PROTECTED]> wrote:
> Ah, because I am trying to use Iron Python as a scripting language for my
> application. I want to expose a limited subset of my appservice functions to
> the scripting language,and let users write scripts.
Personally, I would just use Pyt
Joshua J. Pearce wrote:
> Joesox,
>
> Thank you very much! Now, what if I the getcount() method was actually
> getcount(string arg1), is there a way to call it from within the IP
> script? Or do I need to parse the IP script ahead of time, and call
> the function myself? That would be like writi
Ah, because I am trying to use Iron Python as a scripting language for my
application. I want to expose a limited subset of my appservice functions to
the scripting language,and let users write scripts.
On 10/18/07, JoeSox <[EMAIL PROTECTED]> wrote:
>
> On 10/18/07, Joshua J. Pearce <[EMAIL PROTEC
On 10/18/07, Joshua J. Pearce <[EMAIL PROTECTED]> wrote:
> Joesox,
>
> Thank you very much! Now, what if I the getcount() method was actually
> getcount(string arg1), is there a way to call it from within the IP script?
I don't see why you would want to if you are using an IronPythonEngine
Just d
Joesox,
Thank you very much! Now, what if I the getcount() method was actually
getcount(string arg1), is there a way to call it from within the IP script?
Or do I need to parse the IP script ahead of time, and call the function
myself? That would be like writing my own scripting language, so I hop
On 10/17/07, Joshua J. Pearce <[EMAIL PROTECTED]> wrote:
> OK, please forgive my earlier vagueness. What I want to do is as follows:
>
> pe = PythonEngine.CurrentEngine;
>
> //create a instance of my applications business logic layer class
> myAppService = new AppService(_token);
>
> //I want to be
Hello Joshua,
I'll take a look at this.
It is really easy for IronPython 1 and everything has changed for IP 2
(and the docs are not exactly complete).
It just takes a bit of exploration. You need to be able to set some
globals in the default module (where you can make your .NET objects
avail
OK, please forgive my earlier vagueness. What I want to do is as follows:
pe = PythonEngine.CurrentEngine;
//create a instance of my applications business logic layer class
myAppService = new AppService(_token);
//I want to be able to somehow make methods from the myAppService class
available to
On 10/17/07, Joshua J. Pearce <[EMAIL PROTECTED]> wrote:
> I am looking for an embedded IronPython 2.0 example beyond the simple hello
> world one I quoted before.
>
> What I want to know is:
>
> 1) How to get variable output from the script back to my c# code.
I have a quick section in this artic
I am looking for an embedded IronPython 2.0 example beyond the simple hello
world one I quoted before.
What I want to know is:
1) How to get variable output from the script back to my c# code.
2) How to call scripts with multiple statements.
3) Do all variables need to be set on the script obje
[mailto:[EMAIL PROTECTED] On Behalf Of Davy Mitchell
Sent: Tuesday, October 16, 2007 2:40 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Need a Good Embedded Example
Hi Dino,
Is this why I am having trouble with the pyc.py sample? It does say
1.01 in the description so maybe I shoul
what will
> become the new, final, hosting model).
>
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Joshua J. Pearce
> Sent: Tuesday, October 16, 2007 2:08 PM
> To: users@lists.ironpython.com
> Subject: [IronPython] Need a Good Embedded Example
er 16, 2007 2:08 PM
To: users@lists.ironpython.com
Subject: [IronPython] Need a Good Embedded Example
I have been looking for a good example of embedding IronPython in a c#
application. I am under the impression that there have been some major changes
in the way this is done from version 1.1 t
I have been looking for a good example of embedding IronPython in a c#
application. I am under the impression that there have been some major
changes in the way this is done from version 1.1 to 2.0.
This is what I found at the Python Cookbook site:
namespace IronPythonScriptHost
{
class Progr
18 matches
Mail list logo