The past days I’ve been playing Fire Emblem for Game Boy Advanced again. Highly entertaining and addicting, on a sidenote. Anyway, I was missing some kind of reference on who has support relations to whom, who promotes into what and these kind of things. So, without further ado, I tried writing one myself, using the now quite popular Django Web Framework for Python. After a short learning period things went quite smoothly – until I tried to a bit more complex things in the templating engine, that is.
Archive for the ‘Python’ Category
Ye’ ol’ Django Templating System
Thursday, July 27th, 2006Python wallpaper changer
Thursday, June 9th, 2005With all those cool images I have sitting around on my computer it is often difficult to decide which to choose for my desktop. After a while I wondered if it would be possible to have Python select a random image from my wallpaper folder and set it as background. I digged around a bit and found a function SystemParametersInfo in user32.dll. After some hassles with the parameters I finally managed to create this piece of code to change wallpaper on the fly. Required modules are win32all and ctypes (for dll loading functions) as well as Python Imaging Library (to convert images to .BMP).