From: Kevin A. <ka...@us...> - 2004-07-21 20:24:18
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20146/components Modified Files: image.py Log Message: switched to using wx.lib.statbmp.GenStaticBitmap on GTK Index: image.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/image.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** image.py 19 Jul 2004 17:47:39 -0000 1.22 --- image.py 21 Jul 2004 20:24:08 -0000 1.23 *************** *** 8,11 **** --- 8,18 ---- from PythonCard import event, graphic, widget + USE_GENERIC = wx.Platform == '__WXGTK__' + + if USE_GENERIC: + from wx.lib.statbmp import GenStaticBitmap as StaticBitmap + else: + StaticBitmap = wx.StaticBitmap + class ImageSpec(widget.WidgetSpec): def __init__(self): *************** *** 25,29 **** ! class Image(widget.Widget, wx.StaticBitmap): """ A static image. --- 32,36 ---- ! class Image(widget.Widget, StaticBitmap): """ A static image. *************** *** 49,53 **** ## self._bitmap.SetMask(mask) ! wx.StaticBitmap.__init__( self, aParent, --- 56,60 ---- ## self._bitmap.SetMask(mask) ! StaticBitmap.__init__( self, aParent, |