wPython in Action: example chapter 1
7stud
bbxx789_05ss at yahoo.com
Fri Apr 20 06:00:50 PDT 2007
> On 4/20/07, roee shlomo <roee88 <at> gmail.com> wrote:
>
> Change
> my_component = wx.StaticBitmap(self, bmap)
> To
> my_component = wx.StaticBitmap(self, -1, bmap)
Thanks! Finally!
> Googling wx.StaticBitmap will give you the needed page in wxPython's API.
I had trouble finding it, but I eventually got there. It's hard to find stuff.
> You can see the Constructor if you will scroll down a little:
> __init__(self, parent, id= -1, bitmap=wxNullBitmap, pos=DefaultPosition, size
> = DefaultSize, style=0, name=StaticBitmapNameStr)
> The second parameter is id, which is an integer. -1 means new id.
Yep. Thanks.
> Except for keep following the book, I recommend looking at the API
>whenever something doesn't work well. Also download the wxPython
>docs and demos.
I downloaded the docs. Now we're talking! The wxDocsViewer made
it simple to find CovertToBitmap(). It's deprecated! The author's
introductory example sure has a nice selection of faults.
More information about the wxpython-users
mailing list