--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
That should work, and with quick test in PyShell it does work for me. The grid is sized to fill the frame. (You can tell by the white area of the grid getting stretched as the frame does.) You're not expecting the sizer to resize the columns or to add rows are you?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
def onGridSize(self, event):
width, height = self.GetClientSizeTuple()
for col in range(NCOLUMNS):
self.processGrid.SetColSize(col, width/(NCOLUMNS+1))
This works!
Is there a way to get rid of the first column where it holds the row number?
I'd rather not have it.
Also, is this the best solution? Isn't there a simple way to tell the child to
always resize to the client area of the parent?
Thanks,
Mike
···
On 18/02/06 E. A. Tacao said:
If self is the frame and self.processGrid is the only thing inside the
frame, do this somewhere after the grid creation:
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein