def __init__(self, coordX=300, coordY=150, pixelX=300, pixelY=150,
                       **kwargs):
        self.impl = self.getCanvasImpl()
        
        self.coordHeight = 0
        self.coordWidth = 0
        focusable = Focus.createFocusable()
        self.canvas = self.impl.createElement()
        DOM.appendChild(focusable, self.canvas)
        FocusWidget.__init__(self, focusable, **kwargs)

        self.setPixelWidth(pixelX)
        self.setPixelHeight(pixelY)
        self.setCoordSize(coordX, coordY)
Returns ``True`` if view has file extension ``ext``.
dataset/ETHPy150Open anandology/pyjamas/library/gwt/Canvas/GWTCanvas.py/GWTCanvas.__init__--crossover with--dataset/ETHPy150Open danielmagnussons/orgmode/orgmode.py/has_file_ext