[python-win32] Python 2.4:win32com:ADODB.Connection:py2exe:KeyError

2005-05-25 Thread list repository
Hello win32, Python 2.4 Problem: Works fine when running python test.py but fails when executing test.exe. [Note test.exe was created using py2exe] conn = win32com.client.gencache .EnsureDispatch('ADODB.Connection') conn.Open("Provider='SQLOLEDB';Data Source='.';Initial Catalog='mydatabase';

[python-win32] can dev-cpp's "winanim" example be duplicated with win32gui etc?

2005-05-25 Thread R. Alan Monroe
How feasible is it to write programs like the supplied example in pure python, ideally without resorting to ctypes? (ctypes is bloody useful but if I'm going to that amount of trouble I could just write plain C) By extension can you make a decent barebones Windows screensaver with not too much cod

Re: [python-win32] Windows drag and drop functionality

2005-05-25 Thread Mark Hammond
> If you're using native windows, you can catch the WM_DROPFILES > window message and use win32api.DragQueryFile to get the > names of dropped > files. It may also be necessary to call DragAcceptFiles. This is missing from win32gui (but has been addded), but does exist in win32ui. You may need t

[python-win32] Re: Windows drag and drop functionality

2005-05-25 Thread Roger Upole
If you're using native windows, you can catch the WM_DROPFILES window message and use win32api.DragQueryFile to get the names of dropped files. Roger "Nisarg Kothari" <[EMAIL PROTECTED]> wrote: >I need a way to drag and drop file[names] from windows into some Python > based gui. The onl

Re: [python-win32] Windows drag and drop functionality

2005-05-25 Thread Tim Golden
[Nisarg Kothari] | I need a way to drag and drop file[names] from windows into | some Python based gui. The only thing I found remotely close | to what I'm looking for is Tkdnd.py, but that only works within | the program. I need support for dragging from the windows desktop | or explorer wind

[python-win32] convert encoding from UNIX/MAC to DOS

2005-05-25 Thread yuan ye
Hello everyone, If you have ever used UltraEdit, you will know that it can convert encoding from Unix/Mac to Dos. Does anybody know how I can do it in Python without the help of UltraEdit? For example, to convert the encoding from Unix/Mac to Dos for a TXT file. Regards Ye ___

[python-win32] Windows drag and drop functionality

2005-05-25 Thread Nisarg Kothari
I need a way to drag and drop file[names] from windows into some Python based gui. The only thing I found remotely close to what I'm looking for is Tkdnd.py, but that only works within the program. I need support for dragging from the windows desktop or explorer window. As I have not yet begun maki