PySide6 中的 __feature__

时间:2021-04-27 14:36:38

标签: python pyside pyside6

我想使用 PySide6 中的 __feature__ 模块来使用 snake_case。基于 blog post by Qt,我应该能够像这样使用它:

from __feature__ import snake_case, true_property

table = QTableWidget()
table.column_count = 2

button = QPushButton("Add")
button.enabled = False

layout = QVBoxLayout()
layout.add_widget(table)
layout.add_widget(button)

但是,我不能使用 __feature__ 因为我的程序不知道它来自哪个包。我尝试在没有导入行的情况下执行上面的代码,但这仍然不起作用。我该怎么办?

0 个答案:

没有答案