I'm making a very simple little dialog that just puts up a list box and lets the user select an item from the list.
However, I can't get it to size right on OS-X.
With wxPython 2.6.3, it makes the list box just a bit too small horizontally. It seems to be not taking into account the scrollbar.
With wxPython 2.8.0, it doesn't work at all -- the size seems to have nothing to do with how long the strings are in the listbox.
By the way, in both versions, if you make the box beg enough that it doesn't need the scrollbar, it still draws something there -- a blank space of sorts.
Is there some other sizing call I could be making?
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
I'm making a very simple little dialog that just puts up a list box and lets the user select an item from the list.
However, I can't get it to size right on OS-X.
With wxPython 2.6.3, it makes the list box just a bit too small horizontally. It seems to be not taking into account the scrollbar.
With wxPython 2.8.0, it doesn't work at all -- the size seems to have nothing to do with how long the strings are in the listbox.
By the way, in both versions, if you make the box beg enough that it doesn't need the scrollbar, it still draws something there -- a blank space of sorts.
Is there some other sizing call I could be making?
No there's a bug in the wxListBox::DoGetBestSize method in wxMac. I'll check in a fix later. Until the next release you can explicitly set the min size to some value and then the sizer will use that instead of the best size.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
No there's a bug in the wxListBox::DoGetBestSize method in wxMac. I'll check in a fix later.
Great, thanks -- such service!
Until the next release you can explicitly set the min size to some value and then the sizer will use that instead of the best size.
yup, that's what I'm doing.
It's too bad that Sizers really don't work as well on the Mac -- I guess that's just what we get for less testing!
-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