[python-win32] Overlay Icon Question...

2008-04-14 Thread Andrea Gavana
Hi All, I have a GUI app, written in wxPython, which allows the user to load one or more files (always with the extension *.DATA) and to save some data in a database. Now, I would like to assign an overlay to the icon of the files added to the database, leaving the other files (with the same f

Re: [python-win32] Overlay Icon Question...

2008-04-14 Thread Tim Golden
Andrea Gavana wrote: > 1) I have looked the implementation mentioned in the link above, but > it is a bit unclear to me: how do I actually *use* this class? All my > users have the extension "*.DATA" associated with the Wordpad or > Notepad or similar icons, as they use these editors to open these

[python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
I am trying to determine whether an application is reporting "Not Responding" (like what the task manager shows). I'm not married to the IsHungAppWindow method, it was just suggested to me, and seemed like the right path to go down. My questions are: 1. Are there any win32 Python extensions t

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Tim Roberts
Dahlstrom, Roger wrote: > > I am trying to determine whether an application is reporting "Not > Responding" (like what the task manager shows). I'm not married to > the IsHungAppWindow method, it was just suggested to me, and seemed > like the right path to go down. > It is the same API that T

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
Dahlstrom, Roger wrote: > My questions are: > 1. Are there any win32 Python extensions that expose this? If so, > which ones? I doubt it; it's not available prior to Windows 2000, and MSDN says they might decide to change it later. > 2. If there are not extensions, does anyone know what th

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Tim Golden
Dahlstrom, Roger wrote: > Yeah - I see the MSDN page and the HWND parameter. > I tried the following data types: C_short, c_ushort, c_int, c_uint, > c_long, c_ulong, c_longlong, c_ulonglong. ctypes includes a handy wintypes subpackage: from ctypes import wintypes print wintype.HWND So, in pri

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden Sent: Monday, April 14, 2008 3:10 PM Cc: Python-Win32 List Subject: Re: [python-win32] IsHungAppWindow or equivalent Dahlstrom, Roger wrote: > Yeah - I see the MSDN page and the HWND parameter.

Re: [python-win32] Overlay Icon Question...

2008-04-14 Thread Andrea Gavana
Hi Tim, On Mon, Apr 14, 2008 at 5:07 PM, Tim Golden wrote: > Andrea Gavana wrote: > > 1) I have looked the implementation mentioned in the link above, but > > it is a bit unclear to me: how do I actually *use* this class? All my > > users have the extension "*.DATA" associated with the Wordpad or

[python-win32] Overlay Icon Question...

2008-04-14 Thread Roger Upole
I've been meaning to look at how this works for some time, so I took a few minutes to cook up an example (attached). Roger import win32com import pythoncom from win32com.shell import shell, shellcon import win32api, win32con, winerror class SIOI: _reg_clsid_='{02844251-42C2-44CA-B