Grid Width
Mark Erbaugh
mark at microenh.com
Tue Jan 1 17:55:35 PST 2008
Is there a way to determine the width needed to display a grid without a
horizontal scrollbar even when a vertical scrollbar is displayed.
I added a grid to a vertical box sizer on a frame. The grid is the
widest thing on the frame. As long as there is no vertical scrollbar,
the entire grid is displayed. However, if I reduce the height of the
frame so that a vertical scrollbar is needed for the grid, the width of
the vertical scrollbar reduces the width of the grid and a horizontal
scrollbar is displayed.
Is there a way to determine the width of a vertical scrollbar or the
height of a horizontal scrollbar. I believe they are different sizes
depending on the operating system and perhaps display themes.
When the above grid is displayed (under GTK, at least), there are a few
pixels of background color to the left and bottom of the grid. If I
resize the frame to eliminate those, the scrollbars return. Is there a
way to have the bottom and right edges of the grid exactly at the edge
of the grid, except for space for an undisplayed vertical scrollbar.
More information about the wxpython-users
mailing list