height 属性

height 属性

代表形状的height,单位为像素。

例子


if shape.height == 3:
    shape.height = 1

定义:

@property
def height(self):
    ...
@height.setter
def height(self, value):
    ...

也可以看看