Re: [python-win32] GetOpenFileNameW & InitialDir

2007-05-10 Thread Michel Claveau
Hi! >>> fname=win32gui.GetOpenFileNameW(InitialDir="C:\\dev")[0] >>> The InitialDir is not set > I can't reproduce the behaviour you describe. Sorry. I found that the problem come from the software Stardock/windows_blinds/Enhanced_file_dialog (a skin manager). Yesterday, I try on anothers CP

Re: [python-win32] translating VB into Python...

2007-05-10 Thread Michael March
Cool.. The docs have this: Public Property Field( _ ByVal FieldName As String _ ) As Variant Can we infer the default property from this? On 5/10/07, Tim Roberts <[EMAIL PROTECTED]> wrote: > Michael March wrote: > > I have some sample code with this: > > > >object.Field("UserDefined_01"

Re: [python-win32] translating VB into Python...

2007-05-10 Thread Tim Roberts
Michael March wrote: > I have some sample code with this: > >object.Field("UserDefined_01") = "Open" > > Python barfs on that.. what would be the equivalent of that in Python? > Usually: object.Field("UserDefined_01").Value = "Open" VB has the concept of a "default property" for a coll

[python-win32] translating VB into Python...

2007-05-10 Thread Michael March
I have some sample code with this: object.Field("UserDefined_01") = "Open" Python barfs on that.. what would be the equivalent of that in Python? thanks! -- Michael F. March - mmarch at gmail dot com ___ Python-win32 mailing list Python-win

Re: [python-win32] terminateprocess, getprocessid and compiling trunk on win32

2007-05-10 Thread Mark Hammond
> i'm currently building a multi-platform renderfarm application, and > would need to use GetProcessId to circumvant problems i encounter when > i try to kill processes on win32 > > IE: i can't kill with TerminateProcess a process i spawned with > CreateProcess (getting a Acess Denied error), but i

Re: [python-win32] win32com.client.DispatchWithEvents free threading re-entrancy

2007-05-10 Thread Thomas Heller
Richard Bell schrieb: > I'm working on an application that does some IE automation via the COM > interface. I'm running in a free thread model, sys.coint_flags = 0, and > starting IE with > win32.com.client.DispatchWIthEvents("InternetExplorer.Application", > event_handler_class). Events are arr

[python-win32] terminateprocess, getprocessid and compiling trunk on win32

2007-05-10 Thread benjamin deboute
Hi Pythonistas, i'm currently building a multi-platform renderfarm application, and would need to use GetProcessId to circumvant problems i encounter when i try to kill processes on win32 IE: i can't kill with TerminateProcess a process i spawned with CreateProcess (getting a Acess Denied error),

[python-win32] Couple of new How Do I entries

2007-05-10 Thread Tim Golden
I've added a few new How Do I entries to my site[*], hopefully the first of a few more which I have meant to write up. Since these are COM-related, and since my COM knowledge is not deep, I would appreciate a few eyeballs looking at them to see if I've dropped any real clangers. AFAICT I've not go

[python-win32] win32com.client.DispatchWithEvents free threading re-entrancy

2007-05-10 Thread Richard Bell
I'm working on an application that does some IE automation via the COM interface. I'm running in a free thread model, sys.coint_flags = 0, and starting IE with win32.com.client.DispatchWIthEvents("InternetExplorer.Application", event_handler_class). Events are arriving as revealed by print state

Re: [python-win32] VT_UI1 ByRef behavior

2007-05-10 Thread Kevin Patterson
In case anyone else is interested, below is the code I ended up using to filter buffers from the input and output of the com. It makes use of the Python2.4 decorators that are added to all the functions in th py file generated by makepy. I never thought I would find a reason for the decorator, bu