problem with ScrolledWindow and grid

problem with ScrolledWindow and grid
Hello, I can’t figure out why the layout is not happening. I just want a custom panel that contains a series of rows, to be added dynamically, with a vertical scrollbar when there are more rows than can show on the screen. The rows are all screwed up and if more than one, all superposed. I’ve looked at the wxWidget docs, wiki and examples on the web and still can’t figure it out. The docs say you can just get the ScrolledWindow to work on a sizer, but all examples I’ve seen actually put a panel in the window. I attach the python test file and a jpg of what it looks like when I run it on my machine. Seems like it just won’t sink in to my brain how this sizer stuff works.

Config is python 2.3.4 with wxPython 2.4.2.4.

Any feedback appreciated. Thanks,

Oliver

<<PanelLayersThickNew.py>>

<<…OLE_Obj…>>

PanelLayersThickNew.py (4.72 KB)

Schoenborn, Oliver wrote:

Hello, I can't figure out why the layout is not happening. I just want a custom panel that contains a series of rows, to be added dynamically, with a vertical scrollbar when there are more rows than can show on the screen. The rows are all screwed up and if more than one, all superposed. I've looked at the wxWidget docs, wiki and examples on the web and still can't figure it out. The docs say you can just get the ScrolledWindow to work on a sizer, but all examples I've seen actually put a panel in the window. I attach the python test file and a jpg of what it looks like when I run it on my machine. Seems like it just won't sink in to my brain how this sizer stuff works.

Config is python 2.3.4 with wxPython 2.4.2.4.

Please take a look at wxPython/lib/scrolledpanel.py

···

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