frame
panel
horizontal sizer
text control
text control
During init I would like the panel and frame to automatically resize to just contain the two side-by-side text controls (it’s a countdown timer with two intervals). At the moment I just fiddle with the frame size to get it right, but there should be an automatic way to do this if, for example, I increase or decrease the font of the text controls. Any suggestions? I’ve tried
self.Fit()
but this makes the frame so small it hides the text controls.
I tried “fit” on the frame thinking that was what had to be adjusted to fit, I didn’t think to try it on the sizer. I added that one line and was fine. I should have been looking from the inside out rather than outside in. Thanks.
Someone once said “I’m battling elephants and losing to fleas.” It’s always in the little details.
Woods and trees come mind as well, as in couldn’t see one for the other.
The amount of coding time devoted to ‘losing to fleas’ is astonishing.
Best walk away and do something else, it’s amazing how often the lightbulb comes on, if you do.
Personally, I’ve lost more battles to fleas, than I care to count.