[pywin32-checkins] pywin32/win32/Lib winxptheme.py,NONE,1.1
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-11-08 02:57:53
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3946/win32/lib Added Files: winxptheme.py Log Message: A module wrapping the Windows XP 'theme' APIs. --- NEW FILE: winxptheme.py --- """A useful wrapper around the "_winxptheme" module. Unlike _winxptheme, this module will load on any version of Windows. If _winxptheme is not available, then this module will have only 2 functions - IsAppThemed() and IsThemeActive, which will both always return False. If _winxptheme is available, this module will have all methods in that module, including real implementations of IsAppThemed() and IsThemeActive(). """ import win32api try: win32api.FreeLibrary(win32api.LoadLibrary("Uxtheme.dll")) # Life is good, everything is available. from _winxptheme import * except win32api.error: # Probably not running XP. def IsAppThemed(): return False def IsThemeActive(): return False del win32api |