Popular recipes by Jiri Justra http://code.activestate.com/recipes/users/4192188/2015-08-17T18:54:17-07:00ActiveState Code Recipeshigh precision FPS (Python)
2015-05-12T12:04:38-07:00Jiri Justrahttp://code.activestate.com/recipes/users/4192188/http://code.activestate.com/recipes/579053-high-precision-fps/
<p style="color: grey">
Python
recipe 579053
by <a href="/recipes/users/4192188/">Jiri Justra</a>
(<a href="/recipes/tags/fps/">fps</a>, <a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/games/">games</a>, <a href="/recipes/tags/pure/">pure</a>).
Revision 2.
</p>
<p>This code adjust itself for set FPS value. It is much more precise that time.sleep fps implementation.</p>
Simple video with ctypes and Xvid (Tkinter,pygame,...) (Python)
2015-06-29T13:59:38-07:00Jiri Justrahttp://code.activestate.com/recipes/users/4192188/http://code.activestate.com/recipes/579073-simple-video-with-ctypes-and-xvid-tkinterpygame/
<p style="color: grey">
Python
recipe 579073
by <a href="/recipes/users/4192188/">Jiri Justra</a>
(<a href="/recipes/tags/ctypes/">ctypes</a>, <a href="/recipes/tags/video/">video</a>, <a href="/recipes/tags/xvid/">xvid</a>).
</p>
<p>This is simple library for playing avi video clips. Videos must be SOUNDLESS (and maybe Xvid encoded wont hurt), to work it properly. I am using it to play intro. It suites good to this purpose, since it can play one clip at a time only.</p>
Simple audio with ctypes and SDL also for Tkinter (Python)
2015-08-17T18:54:17-07:00Jiri Justrahttp://code.activestate.com/recipes/users/4192188/http://code.activestate.com/recipes/579070-simple-audio-with-ctypes-and-sdl-also-for-tkinter/
<p style="color: grey">
Python
recipe 579070
by <a href="/recipes/users/4192188/">Jiri Justra</a>
(<a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/sdl/">sdl</a>, <a href="/recipes/tags/sdl_mixer/">sdl_mixer</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 3.
</p>
<p>I've needed just to play audio in my Tkinter application, but it seems there is no easy way to do this, so I have made this simple code. It is small ctypes wrapper around SDL_mixer.</p>
<p>It should work for Win and *nix also .. I've tested it on ubuntu-14.04.3-desktop-i386</p>