rolTypeProperty,
ControlType.Button))
The C# code that accompanies the article successfully uses the FindAll
with AutomationElement.ControlTypeProperty. Is this a known issue in
IronPython? I'm using IronPython 1.1.1. Is this fixed in 2.0?
TIA,
-- Marcel
_
u are running into that same issue or something else.
>
So the problem is with the UI Automation? Is there a way to verify
this comes from the same root cause?
Should I submit the issue in the codeplex issue tracker?
TIA,
-- Marcel
___
Use
')
bytes.append('a')
bytes.append('b')
bytes.append('c')
Marshal.Copy(bytes, dest, 0, 3)
Is there a way to make this work without copying the data? If not, how
do I convert the data in the Python array to the .NET array?
Thanks,
-- Marcel
__
IronPython exception I'm getting is:
TypeError: expected IntPtr, got array
Casting the bytes array to IntPtr changed the error into:
TypeError: expected int, got array
I'm using IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927
Any idea?
Thanks,
-- Marcel
On Jun 11, 11:27 pm, David E
= Point(2, 2)
pb.Image = bitmap
pb.Parent = self
self.Size = Size(bitmap.Width + 20, bitmap.Height + 45)
self.CenterToScreen()
Application.Run(IForm())
Using bitmap.SetPixel works, but I cannot find how to make it work
using the LockBits and Marshal.Copy.
Thanks,
reason I chose array('B') was twofold. The pixel generation is
done in a pure Python library and I sometimes need to swap the byes
(depending on the endianness of the system), which the Python array
conveniently provides.
Thanks,
-- Marcel
On Jun 14, 7:05 am, Curt Hagenlocher wrote:
Thanks Dino, the ctypes.memmove does work!
I wasn't aware that ctypes could be used in IronPython. Do they
marshal to unmanaged code under the hood?
Let me know if you want me to file a bug against the Marshal.Copy
overload behavior.
Thanks,
-- Marcel
On Jun 15, 11:42 am, Dino Viehland
Ok, it's clear now. Thanks for the great support!
-- Marcel
On Jun 15, 9:21 pm, Dino Viehland wrote:
> Marcel wrote:
> > Thanks Dino, the ctypes.memmove does work!
>
> > I wasn't aware that ctypes could be used in IronPython. Do they
> > marshal to unmanaged co
Hi there,
I have a problem with my application. It's written in C# and embeds
IronPython. In C#, I have a class that looks like this:
public class foo
{
public foo()
{
...
}
...
}
I put this into the ScriptScope I use by doing:
scope.SetVariable("fooclass", typeof(foo));
because it has no public constructors. Code:
class bar(fooclass):
def __init__(self):
Name = "Unused"
...
barobject = bar()
Well, I can't really say what this is about. Is it a Bug in IP or anything
like a limitation?
Greetings, Marcel
___
your Python code
>
> from Namespace.Containing.Your.Foo.Class import foo
>
> On Mon, Dec 28, 2009 at 4:36 AM, Marcel Heing-Becker <
> mars...@googlemail.com> wrote:
>
>> PLEASE IGNORE MY PREVIOUS POST with the same title, I accidentally sent it
>> before I was fini
11 matches
Mail list logo