width 属性
width 属性
表示形状的 width,以像素为单位。
例子
if shape.width == 3:
shape.width = 1
定义:
@property
def width(self):
...
@width.setter
def width(self, value):
...
表示形状的 width,以像素为单位。
if shape.width == 3:
shape.width = 1
@property
def width(self):
...
@width.setter
def width(self, value):
...