예제 #1
0
파일: SVGCanvas.py 프로젝트: Afey/pyjs
    def setPixelHeight(self, height):
        """
        Sets the CSS height of the canvas in pixels.

        @param height the height of the canvas in pixels
        """
        height = int(height)
        self.pixelHeight = height
        FocusWidget.setHeight(self, height)
        DOM.setElemAttribute(self.canvas, "height", str(height))
        self._set_base_transform()
예제 #2
0
    def setPixelHeight(self, height):
        """
        Sets the CSS height of the canvas in pixels.

        @param height the height of the canvas in pixels
        """
        height = int(height)
        self.pixelHeight = height
        FocusWidget.setHeight(self, height)
        DOM.setElemAttribute(self.canvas, "height", str(height))
        self._set_base_transform()
 def setPixelHeight(self, height):
     height = int(height)
     self.pixelHeight = height
     FocusWidget.setHeight(self, height)
     DOM.setElemAttribute(self.canvas, "height", str(height))
     self._set_base_transform()
예제 #4
0
파일: Canvas2D.py 프로젝트: audreyr/pyjs
 def setHeight(self, height):
     FocusWidget.setHeight(self, height)
     self.canvas.height = height
예제 #5
0
 def setHeight(self, height):
     FocusWidget.setHeight(self, height)
     self.canvas.height = height
예제 #6
0
 def setPixelHeight(self, height):
     FocusWidget.setHeight(self, str(height) + "px")
     self.impl.setPixelHeight(self.getCanvasElement(), height)
예제 #7
0
파일: GWTCanvas.py 프로젝트: Afey/pyjs
 def setPixelHeight(self, height):
     FocusWidget.setHeight(self, str(height) + "px")
     self.impl.setPixelHeight(self.getCanvasElement(), height)