set_column_width方法

set_column_width

设置普通视图中指定列的宽度。

def set_column_width(self, column, width):
    ...
范围类型描述
columnint列索引。
widthfloat列宽。列宽必须介于 0 到 255 之间。

评论

要隐藏列,请将列宽设置为零。

也可以看看