示例#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)