3 Nov 2003 06:11
setting sizers in Boa?
Hi all, I've been trying vainly to get sizers added to a notebook app I've started. So, I set up a simple notebook with one page, and a plot, slider and button on it. I want the slider and button in one row at the bottom to have static height, and the PyPlot to always grow to the rest of the page (horizontally and vertically) as the app is resized. Can someone give a run-through as to the order of what to do in the IDE? I've been trying a flex-grid, and nested boxsizers as in the example SizersInBoa.py, but I'm evidently doing something wrong, as Boa has crashed 15+ times at various points with flex-sizers and I could never create a working sizer example. (It all works very nicely otherwise, Win2K, Py2.2, Boa 0.2.7 from CVS.) I made the example below with nested boxsizers, but I can't get the PyPlot to grow and always fill the screen, with minimum space for the slider. Ray http://rjs.org/astro Base example below, nested box sizer: #Boa:Frame:wxFrame1 from wxPython.wx import * from wxPyPlot.wxPyPlot import PlotCanvas def create(parent): return wxFrame1(parent)(Continue reading)
RSS Feed