The wrong approach to things

2008-08-09 Thread teh_sAbEr
Ok, so this isn't necessarily a programming issue, but anyways. I've managed to write that random wallpaper changer i've been wanting to make, but i've run into a little problem. According to the MS Knowledge Base, SystemParametersInfo() can't take a .jpg file as an argument when changing the wallp

wxPython code giving strange errors.

2008-07-13 Thread teh_sAbEr
I'm busy trying to learn wxPython, and i'm trying to run the following piece of code (its from the wxPyWiki tutorial): import wx ID_ABOUT = 101 ID_EXIT = 110 class MainWindow(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,parent,wx.ID_ANY,title,size=(200,100))

Re: Working with the Windows Registry

2008-06-26 Thread teh_sAbEr
Great! It works properly now but I have one more question, would anyone know how to get the changes to take effect immediately? Like some sort of Python way to force the desktop to reload? AFAIK the only way that'll happen is if I use the Display Properties dialog box. The Registry value is changed

Working with the Windows Registry

2008-06-25 Thread teh_sAbEr
Hi everybody. I'm trying to write a script that'll change desktop wallpaper every time its run. Heres what I've gotten so far: #random wallpaper changer! import _winreg from os import walk from os.path import exists from random import randint #first grab a registry handle. handle = _winreg.OpenKe