Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Tim Golden
On 12/02/2010 08:56, Tim Golden wrote: [... snip ideas re WMI ...] To clarify, after a little Googling: it appears that altho' Win32_VolumeChangeEvent is exposed under WinXP it's effectively not implemented. Win32_DeviceChangeEvent doesn't return the device itself. Not sure what OS you're

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Tim Golden
On 12/02/2010 08:56, Tim Golden wrote: You've got two, perhaps three approaches you could take here. One is to use the WM_DEVICECHANGE windows message. I thought I had an example in my list of How-Tos but I see that I don't. ... so I've now added it:

Re: [python-win32] permissions error

2010-02-12 Thread Dave Angel
Jeff Peery wrote: Hello, I'm running on vista and I'm getting a permissions error from win32com. I attached a print screen displaying the error message. It appears win32com is trying to write a file and vista UAC is blocking it. Why is win32com trying to do this and how do I fix it? the only

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Chris Jesse
Hi TJG, Thanks for your very helpful reply and code snippet. I'm happy that there seems to be a way to do this in windows. The application is multi-threaded with the MainThread being a wxPython MainLoop which monitors for events such as Shutdown (QUERY_END_SESSION) etc. It has to be the

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Tim Golden
On 12/02/2010 15:52, Chris Jesse wrote: Hi TJG, Thanks for your very helpful reply and code snippet. I'm happy that there seems to be a way to do this in windows. The application is multi-threaded with the MainThread being a wxPython MainLoop which monitors for events such as Shutdown

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Aahz
On Fri, Feb 12, 2010, Tim Golden wrote: On 12/02/2010 08:56, Tim Golden wrote: You've got two, perhaps three approaches you could take here. One is to use the WM_DEVICECHANGE windows message. I thought I had an example in my list of How-Tos but I see that I don't. ... so I've now added it:

[python-win32] Compile error on MySQL-Python with Mingw (python 2.6)

2010-02-12 Thread Glen Zangirolami
I am having an issue compiling mysql-python on windows 7 using Mingw32. This is my first time compiling it with Mingw32 and not using Microsoft Visual Studio compilers. I have gotten pretty far using tutorials on the net but hit a road block. *Setup*: Windows 7 Ultimate Python 2.6