Is this because I am within a class that requires that automatically
passes self? I don't really need self. Do I have to create the function
outside of the class to not have to pass the self parameter? Can someone
clear this issue up for me? Thanks.
--vicki
sorry.. I did not read the entire Email so my answer was a bit too short.
Is this because I am within a class that requires that automatically
passes self?
yes
I don't really need self. Do I have to create the function
outside of the class to not have to pass the self parameter?
yes
Can someone clear this issue up for me?
You already did
If I look at the code you posted it looks like the function is now part of the ComboBoxPanel class which is not a logical place. It would indeed be better to seperate the function from the class. In that case, you won't need the self parameter. But hey.. you already said it yourself!
However when I disable the tool I just get a grey rectangle instead of my bmpDisabled bitmap?
Platform and version?
MS XP Pro, Python 2.2, wxPython 2.4.0.7
Does it make any difference with different images in the toolbar? (For example, with simple 16 color images instead of images with many colors?) How about if you change the color depth of your display? And finally, does using wxPython 2.4.1.2 make a difference?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!