Re: that's enough

Christopher Barker <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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

[email protected]
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.