[python-win32] (no subject)

2005-01-26 Thread Jeff Peery
Hello, I am using wxpython and I am having trouble passing variables from one frame to another. If I have a parent frame frame1 and I call a dialog using the following text: dlg = wxDialog2.wxDialog2(self) try: dlg.ShowModal() finally: dlg.Destroy() where in this bit of

[python-win32] PIL issue with desktop wallpaper changing

2005-01-26 Thread Chris Stromberger
I have a script to change the desktop wallpaper. If it encounters a corrupt jpg, it seems to get off track and not recover. Here's the code snippet. This is called in a loop with several jpg images in a directory to switch the wallpaper. im = Image.open(filename) [call im.resize() here if

[python-win32] Re: PIL issue with desktop wallpaper changing

2005-01-26 Thread Chris Stromberger
One more clue. If I change the code to resize always, then the corrupt jpg fails in the call to im.resize (before it attempts to call im.save), and thereafter there are no problems--the subsequent normal jpgs all work fine. So it appears that by failing in im.save, the 'windows.bmp' file is left