LEDNumberCtrl ignores size

8 views
Skip to first unread message

Stefanie Lück

unread,
Dec 17, 2009, 11:48:04 AM12/17/09
to wxPython-users
Hello everybody!

I'm using the gizmos.LEDNumberCtrl and want to adjust the size of it.
This works fine until I put the LED in a BoxSizer. If I do so, the LED
ignores any given size values. Other widgets in my boxsizer don't have
such a problem, so doe's anyone know whether this is a bug?

Thanks for any help!
Stefanie

Robin Dunn

unread,
Dec 17, 2009, 1:14:10 PM12/17/09
to wxpytho...@googlegroups.com

The widget probably doesn't have a DoGetBestSize defined so it is
falling back to a simple default. You can override that by setting its
min size to whatever you want, which the sizer will then use instead of
the best size.

--
Robin Dunn
Software Craftsman
http://wxPython.org

Stefanie Lück

unread,
Dec 17, 2009, 1:28:08 PM12/17/09
to wxPython-users
Thanks a lot, that's it!
Nice evening!
Reply all
Reply to author
Forward
0 new messages