Adjusting grid size

I have a 1 row grid that would like to adjust preciselly to the size of that row, but same extra space is always added, as the followinf sample will show:

from wxPython.wx import *
from wxPython.grid import *

RowSize = 40
ColSize = 20
TapeCols=10

class Tape(wxGrid):
    def __init__(self,parent):
        wxGrid.__init__(self,parent,-1)
        self.CreateGrid(1,TapeCols)
        self.Fit()
        self.EnableScrolling(True,False)
        self.EnableDragGridSize(False)
        self.SetColLabelSize(0)
        self.SetDefaultRowSize(RowSize)
        self.SetDefaultColSize(ColSize)

if __name__ == "__main__":
    app = wxPySimpleApp(0)
    frame = wxFrame(None, -1, "", size=(-1,-1))
    frame.Show()
    grid = Tape(frame)
    #trying to adjust size...
    (h,w)=grid.GetSize()
    print h,w
    frame.SetSize((h,w))
    app.MainLoop()

Why is that?

Thanks

Nelma

···

--
Nelma Moreira
nam@ncc.up.pt
http://www.ncc.up.pt/~nam