Re: [python-win32] OLE Server Busy dialog box

2006-08-09 Thread Diogo
Hi! Some more details about the server busy dialog box. This program, that I'm working with, calls MakeActiveXClass(wxPython), which calls pywin.mfc.CreateControl, which calls win32ui.CreateControl. If I connect to a slow COM server just _before_ the call to win32ui.CreateControl, then everything

Re: [python-win32] OLE Server Busy dialog box

2006-08-09 Thread Mark Hammond
I can throw you a new win32uiole module with the functions referenced in the knowledge base article, but apart from trying to fiddle with the main thread's thread-state (search for 'sys.coinit_flags'), I can't offer much more help... Mark > Some more details about the server busy dialog box. > >

Re: [python-win32] Dispatches With Events on COM Object

2006-08-09 Thread Mark Hammond
> * The call to Dispatch happens > * The __wrapDispatch is called with an object for dispatch but the > username is None > * The getTypeInfo method throws an pywintypes.com_error which has > the message of (-2147467263, 'Not implemented', None, None) It is that last step wh

[python-win32] win32ui.CreateFileDialog error

2006-08-09 Thread Tim Riley
Can anyone explain to me why the following code will return a list if I select 12 files but will return None if I select 13?#file: pdf_batch_plot.py#auth: Tim Riley#rev:  0#desc: Allows the selection of multiple pdf files and batch plots them to pdf. ##Note: This program requires the win32all packa

Re: [python-win32] win32ui.CreateFileDialog error

2006-08-09 Thread Tim Roberts
Tim Riley wrote: > Can anyone explain to me why the following code will return a list if > I select 12 files but will return None if I select 13? It's an ugly but well-known limitation: the buffer passed to CreateFileDialog is big, but not big enough. When you select more files than will fit, t

[python-win32] Re: win32ui.CreateFileDialog error

2006-08-09 Thread Roger Upole
You can call win32gui.CommDlgExtendedError() to find the reason why it failed. If the buffer size is actually the problem, it will return winerror.FNERR_BUFFERTOOSMALL (12291). win32gui.GetOpenFileNameW creates the same type of dialog, and you can use the MaxFile argument to specify a large buffe

Re: [python-win32] win32ui.CreateFileDialog error

2006-08-09 Thread Gabriel Genellina
At Wednesday 9/8/2006 17:41, Tim Roberts wrote: > Can anyone explain to me why the following code will return a list if > I select 12 files but will return None if I select 13? It's an ugly but well-known limitation: the buffer passed to CreateFileDialog is big, but not big enough. When you s