wxBitmapFromImage function in wxPython?

Cliff Wells logiplexsoftware at earthlink.net
Sun Dec 30 18:04:18 EST 2001


On Sun, 30 Dec 2001 21:40:19 +0100
Stephane SOPPERA <soppers3 at cti.ecp.fr> wrote:

> I read in the documentation of wxPython that this function exists:
> 
>     wxBitmapFromImage(image, depth=-1)
>                                                        Convert a wxImage
> to a wxBitmap.
> 
> But the Python does not know it.
> When I use it, it return an Nameerror exception. (I use the from
> wxPython.wx import * command)
> It's not in dir(wxPython.wx).
> I'm using python 2.1.
> Is that function really exists?
> What could be another solution to do the same thing?
> 
> Thanks in advance,

Python 2.1.1 (#1, Aug 28 2001, 19:51:39) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from wxPython.wx import *
>>> wxBitmapFromImage
<function wxBitmapFromImage at 0x83cd504>
>>> 

Perhaps there is something amiss with your wxPython installation?

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list