weird sizing for grid

James Bigler bigler at cs.utah.edu
Tue Mar 6 07:15:23 PST 2007


I'm trying to nail down a problem I'm having with sizing a grid in a dialog=
 to =

be a certain size.

I want to create a "static" grid that will allow me to show some data.  The =

contents are static and don't need to be edited.  Here are some requirement=
s:

1. All the cells need to be expanded so there is no hidden text.  I do this=
 with =

AutoSizeRows().
2. I would like the grid to fill a specific size.  If it is bigger, I want =

scroll windows to appear.  I set the column sizes and the max size.
3. I don't want a horizontal scroll bar.

With wxPython 2.6.1.1 on linux, I can kind of size the grid, but I can't ge=
t rid =

of the horizontal scroll bar.

With wxPython 2.8.1.1 on Windows, the grid expands out to where I don't get =

scroll bars either vertically or horizontally, but it is too big.

I'm not sure what I'm supposed to do to get the behavior I want.  I've atta=
ched =

code that demonstrates my problem.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: table.py
Type: text/x-python
Size: 5755 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
306/8e969098/table.py


More information about the wxpython-users mailing list