wxComboBox Strangeness...

andrea_gavana@tin.it wrote:

AttributeError: 'ComboBox' object has no attribute 'SetBestSize'

?!?!?!?!?!? What?!? ... it is quite strange for me, the combobox has a GetBestSize
but it does not have a SetBestSize? It seems a contradiction to me...

The "best" size of a widget is a calculated value, not a property that can be set. Instead you can SetMinSize and the sizer will use that instead of its best size when calculating layout. (Actually the sizer uses GetBestFittingSize which blends the min size with the best size, so if either component of the min size is -1 you'll actually end up with the best size value for that component.)

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!