Popular recipes tagged "meta:requires=win32gui"http://code.activestate.com/recipes/tags/meta:requires=win32gui/2015-01-03T02:04:02-08:00ActiveState Code RecipesSnake the game (Python) 2015-01-03T02:04:02-08:00Burak Tandoganhttp://code.activestate.com/recipes/users/4191373/http://code.activestate.com/recipes/578996-snake-the-game/ <p style="color: grey"> Python recipe 578996 by <a href="/recipes/users/4191373/">Burak Tandogan</a> (<a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/pygame/">pygame</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/snake/">snake</a>, <a href="/recipes/tags/the/">the</a>). Revision 3. </p> <p>Popular Snake game with Python-Pygame module. <strong>Important:</strong> If you try to run this script without special <strong>png-wav</strong> files it will fail, you have to put following files to a directory with this script. "apple.png","snakehead.png","intro.wav","dead.wav". They are basically apple picture, head of snake, intro sound and dead sound.Without them script will not run. Just make inactive the statements intro.wav and dead.wav, and find a little apple picture and snake head :).Or you can play the game just install it. <strong>Here is the installer:</strong> <a href="http://dosya.co/7c6f15c0f4d04514/Flafel-1.26-win32.rar" rel="nofollow">http://dosya.co/7c6f15c0f4d04514/Flafel-1.26-win32.rar</a> It will install the game in program files, you can find it in search "Flafel" and click to Flafel.exe. </p> Manage environment variables on Windows (Python) 2011-03-31T18:27:57-07:00Sridhar Ratnakumarhttp://code.activestate.com/recipes/users/4169511/http://code.activestate.com/recipes/577621-manage-environment-variables-on-windows/ <p style="color: grey"> Python recipe 577621 by <a href="/recipes/users/4169511/">Sridhar Ratnakumar</a> (<a href="/recipes/tags/environment/">environment</a>, <a href="/recipes/tags/pywin32/">pywin32</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 7. </p> <p>This recipe facilitates getting and setting of both "user" and "system" environment variables on Windows. It uses PyWin32 (included in ActivePython) ... and works on both Python 2 and Python 3.</p> Python to IProgressDialog interface (Python) 2011-02-17T23:04:04-08:00Larry Bateshttp://code.activestate.com/recipes/users/4170897/http://code.activestate.com/recipes/576821-python-to-iprogressdialog-interface/ <p style="color: grey"> Python recipe 576821 by <a href="/recipes/users/4170897/">Larry Bates</a> (<a href="/recipes/tags/com/">com</a>, <a href="/recipes/tags/progress/">progress</a>). Revision 2. </p> <p>Easy method to use Windows Explorer's ProgressDialog COM object to show progress of processing, uploads, downloads, etc.</p> export variable on win32 like *nix (Python) 2008-08-18T20:10:34-07:00winterTTr Donghttp://code.activestate.com/recipes/users/4164498/http://code.activestate.com/recipes/576431-export-variable-on-win32-like-nix/ <p style="color: grey"> Python recipe 576431 by <a href="/recipes/users/4164498/">winterTTr Dong</a> (<a href="/recipes/tags/register_table/">register_table</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 4. </p> <p>Export variable PERMANENTLY on win32 , without needing to reboot system.</p> <p>EXAMPLE:</p> <p>import win32export</p> <p>win32export.export("fooname" , "foovalue")</p> <p>NOTE: </p> <p>you need to install "pywin32" if you want to use this .</p> Persistent environment variables on Windows (Python) 2007-07-24T18:46:47-07:00Gigi Sayfanhttp://code.activestate.com/recipes/users/101538/http://code.activestate.com/recipes/416087-persistent-environment-variables-on-windows/ <p style="color: grey"> Python recipe 416087 by <a href="/recipes/users/101538/">Gigi Sayfan</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). Revision 4. </p> <p>This script allows adding/modifying/removing environment variables persistently on Windows. It also allows adding entries to the PATH environment variable.</p> Run two instances of Windows Explorer side by side (Python) 2005-09-20T23:52:17-07:00Soon Wah Chuahttp://code.activestate.com/recipes/users/2598827/http://code.activestate.com/recipes/440583-run-two-instances-of-windows-explorer-side-by-side/ <p style="color: grey"> Python recipe 440583 by <a href="/recipes/users/2598827/">Soon Wah Chua</a> . </p> <p>This recipie will run two copies of Windows Explorer, resize them to fit each of them to half the desktop size and place them side by side to facilitate file management between two directories or disk drives.</p> Windows clipboard viewer (Python) 2004-12-04T12:50:56-08:00Georg Nelleshttp://code.activestate.com/recipes/users/2176948/http://code.activestate.com/recipes/355593-windows-clipboard-viewer/ <p style="color: grey"> Python recipe 355593 by <a href="/recipes/users/2176948/">Georg Nelles</a> (<a href="/recipes/tags/ui/">ui</a>). </p> <p>With the "SetClipboardViewer" function you can add a window to the chain of clipboard viewers. Whenever the content of the clipboard changes, a message is send to the clipboard viewer windows. A clipboard viewer window must process two messages and pass them to the next window in the chain. With a sample about hooking the window procedure of a wxPython Frame, I made up the following clipboard viewer.</p> pyGTK Win32 Extension - Empower GTK with Win32 windowing features. (Python) 2004-11-15T06:28:28-08:00Fadly Tabranihttp://code.activestate.com/recipes/users/2143621/http://code.activestate.com/recipes/334779-pygtk-win32-extension-empower-gtk-with-win32-windo/ <p style="color: grey"> Python recipe 334779 by <a href="/recipes/users/2143621/">Fadly Tabrani</a> . Revision 3. </p> <p>This module enables pyGTK developers on the windows platform to handle native windows messages and take advantage of features such as notification icons and window transparency (Win2000 and above). Requires pywin32 extensions by Mark Hammond.</p> How to Connect to an Already Running Instance of Internet Explorer (Python) 2004-06-13T23:03:49-07:00Bill Bellhttp://code.activestate.com/recipes/users/98151/http://code.activestate.com/recipes/269345-how-to-connect-to-an-already-running-instance-of-i/ <p style="color: grey"> Python recipe 269345 by <a href="/recipes/users/98151/">Bill Bell</a> (<a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>Various sources (but principally Hammond and Robinson) show how to instantiate Internet Explorer in order to have access to its interfaces. However, few places show how to connect to an instance that is already running, which is so easy in VB.</p> <p>Thanks are due to someone called "gcash" for this idea. See <a href="http://dbforums.com/t867088.html." rel="nofollow">http://dbforums.com/t867088.html.</a></p> <p>It just seemed to me that this is a good recipe to have in this collection as a reference to a certain approach, rather than as a full solution.</p> Low resource Win32 splashscreen (Python) 2002-04-14T15:18:03-07:00Henk Punthttp://code.activestate.com/recipes/users/235719/http://code.activestate.com/recipes/120687-low-resource-win32-splashscreen/ <p style="color: grey"> Python recipe 120687 by <a href="/recipes/users/235719/">Henk Punt</a> . </p> <p>The following code implements a splash screen as typically found in windows applications. Using only API's available from win32gui, win32api and win32con, it avoids dependancy on MFC (wrapped by win32ui). This way the 600kb or so win32ui.pyd extension DLL is not needed when freezing your app with py2exe. Another 80kb could be squeezed out by not using win32con but to define the necessary constants directly in the code itself.</p>