[Image-SIG] that's enough

Christopher Barker Chris.Barker at noaa.gov
Mon Aug 2 03:34:03 CEST 2010


Jack Uretsky wrote:
>     I think I understood your use of periods.  Here's my most recent 
> attempt, resulting in a "'module' object is not callable" error.

read the error message carefully, and also read the notes to this list 
carefully -- I'm pretty someone already suggested a fix for this:

>>>                bmp = wx("a_4.jpg", wx.BITMAP_TYPE_ANY.ConvertToBitmap()

that's trying to call the "wx' module, which, as the error says in not 
callable. I think you want:

        bmp = wx.Image("a_4.jpg", wx.BITMAP_TYPE_ANY).ConvertToBitmap()

though it would be easier to do:

       bmp. wx.Bitmap("a_4.jpg")

(untested)

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Image-SIG mailing list