Popular recipes tagged "windows_api"http://code.activestate.com/recipes/tags/windows_api/2013-03-22T11:14:44-07:00ActiveState Code RecipesEnable Clear Type font smoothing on Windows (pywin32 version) (Python) 2013-03-22T11:14:44-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/578499-enable-clear-type-font-smoothing-on-windows-pywin3/ <p style="color: grey"> Python recipe 578499 by <a href="/recipes/users/4170754/">ccpizza</a> (<a href="/recipes/tags/fontsmoothing/">fontsmoothing</a>, <a href="/recipes/tags/pywin32/">pywin32</a>, <a href="/recipes/tags/windows_api/">windows_api</a>). Revision 2. </p> <p>Running the script without parameters will enable Clear Type font smoothing. Pass <code>0</code>, <code>false</code>, <code>off</code>, or <code>disable</code> to turn off Clear Type.</p> <p>This version requires the <code>pywin32</code> module from <a href="http://sourceforge.net/projects/pywin32/files/pywin32/Build%2520218/" rel="nofollow">http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/</a></p> <p>For a <code>ctypes</code>-based version see: <a href="http://code.activestate.com/recipes/578500-enable-clear-type-font-smoothing-on-windows-ctypes/" rel="nofollow">http://code.activestate.com/recipes/578500-enable-clear-type-font-smoothing-on-windows-ctypes/</a></p> Calling Windows API using ctypes and win32con (Python) 2008-07-25T20:01:50-07:00Gary Eakinshttp://code.activestate.com/recipes/users/470921/http://code.activestate.com/recipes/208699-calling-windows-api-using-ctypes-and-win32con/ <p style="color: grey"> Python recipe 208699 by <a href="/recipes/users/470921/">Gary Eakins</a> (<a href="/recipes/tags/ctypes/">ctypes</a>, <a href="/recipes/tags/windows_api/">windows_api</a>). Revision 4. </p> <p>It is easy to call Windows API dlls using the ctypes module with win32con defining the constant values for message identifiers and parameter flags. The demo code shows a simple but complete application that registers a window class and a Python WndProc callback function, creates the window and pumps messages.</p>