提交 444f2fe9 编写于 作者: 之一Yo's avatar 之一Yo

fixes #138

上级 0207186f
......@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details.
"""
__version__ = "0.7.1"
__version__ = "0.7.2"
from .components import *
from .common import *
......
......@@ -239,7 +239,7 @@ class PickerBase(QPushButton):
@checkColumnIndex
def setColumnAlignment(self, index: int, align=Qt.AlignCenter):
""" set the text alignment of specified column """
self.columns[index].setTextAlignment(align)
self.columns[index].setAlignment(align)
@checkColumnIndex
def setColumnWidth(self, index: int, width: int):
......@@ -320,6 +320,7 @@ class PickerBase(QPushButton):
""" clear columns """
while self.columns:
btn = self.columns.pop()
self.hBoxLayout.removeWidget(btn)
btn.deleteLater()
def enterEvent(self, e):
......
......@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup(
name="PyQt-Fluent-Widgets",
version="0.7.1",
version="0.7.2",
keywords="pyqt fluent widgets",
author="zhiyiYo",
author_email="shokokawaii@outlook.com",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册