Update of /cvsroot/pythoncard/PythonCard/samples/saveClipboardBitmap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19204/saveClipboardBitmap
Modified Files:
saveClipboardBitmap.py
Log Message:
Removed all of the plain except: clauses I could
Index: saveClipboardBitmap.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/saveClipboardBitmap/saveClipboardBitmap.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** saveClipboardBitmap.py 12 Aug 2004 19:18:58 -0000 1.17
--- saveClipboardBitmap.py 13 Dec 2005 11:13:24 -0000 1.18
***************
*** 56,60 ****
if not isinstance(self.bmp, wx.Bitmap):
return
-
if self.filename is None:
path = ''
--- 56,59 ----
***************
*** 62,66 ****
else:
path, filename = os.path.split(self.filename)
-
# wxPython can't save GIF due to the license issues
# but we can save most other formats, so this list can be expanded
--- 61,64 ----
***************
*** 75,83 ****
#print fileType, path
self.filename = path
! try:
! self.bmp.SaveFile(path, fileType)
! return True
! except:
! return False
else:
return False
--- 73,78 ----
#print fileType, path
self.filename = path
! self.bmp.SaveFile(path, fileType)
! return True
else:
return False
|