diff --git a/qfluentwidgets/__init__.py b/qfluentwidgets/__init__.py index 34751c2c1204eb3a51b126555803e3cfb5cf88af..1176f982f6199038370aa815cf09a01343a577fe 100644 --- a/qfluentwidgets/__init__.py +++ b/qfluentwidgets/__init__.py @@ -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 * diff --git a/qfluentwidgets/components/date_time/picker_base.py b/qfluentwidgets/components/date_time/picker_base.py index c59a457064ecf8613542615e10b7bf74ae1f6ae3..1ebbd6a933aaf75d763432ba504ade90cd121a09 100644 --- a/qfluentwidgets/components/date_time/picker_base.py +++ b/qfluentwidgets/components/date_time/picker_base.py @@ -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): diff --git a/setup.py b/setup.py index 14719c30c8b3ace8f2507619a30d314680ace05b..6fd40258f6b3ed9ce4f8651c42917ce2e2da0a7d 100644 --- a/setup.py +++ b/setup.py @@ -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",