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
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
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