merl em wrote:
Anders, thank you very much, too. But actually I call all sizers
always with
anysizer.Add(..., 1, wx.EXPAND)
In Forenfrage_scoll.py which you attached, there are two instances
where you don't. By the way, in that you are using SetSizerAndFit
where you should be using just SetSizer. You can't use Fit
meaningfully when the full content doesn't fit on the screen and you
have scrollbars.
In ScrollbarDemonstration.py there aren't any proportion=0, but then
that displays scrollbars just fine when I run it. If that's not
working for you, you may have a platform or version-specific issue.
About the posting: I would willingly do If I only *could*.
If your mail program prevents you from editing or removing the text
that you are replying to, then that is a very poor mail program.
BR, Anders
About SetSizerAndFit: The wxPython-docs only say: “The same as SetSizer, except it also sets the size hints for the window based on the sizer’s minimum size.”
There’s no reference about not to use it to avoid scrollbar problems, or just if the panel is intended to be bigger than the frame. (The text to SetSizer also has no remark about possible interferences with scrollbars.) But if you say so, it’s doubtlessly true. It’s just that it’s very difficult for someone who tries to learn wxPython to guess all these things that are not stated in the docs…
I’ve tried 0 and 1 as proportion in other codes, too, and usually it makes no difference. As in ScrollbarDemonstration.py with the second sizer, settig the proportion to 1 doesn’t cure the problem, so it seems to me that this is at least not the only problem. Or does ScrollbarDemonstration.py run correctly on your system even when the second sizer is in action?
About: "If your mail program prevents you from editing or removing the text
that you are replying to, then that is a very poor mail program."
Sorry, it seems that I misunderstood your concern. (The expression ‘top-post’ had another meaning to me, I guess.) I try to make it better…
Best regards,
merlem
P.S.:
Another example where the sizer proportion seems not to be the problem is attached.
With the wx.Panel-class I got Panels shown, with the ScrolledPanel-class everything collapses.
Best regards,
merlem
Collapscode2c.py (1.91 KB)