QSpinBox 组件值改变会触发 valueChanged 事件。
self
.spinBox
.setMinimum
(1)
self
.spinBox
.setMaximum
(3)
self
.spinBox
.valueChanged
.connect
(self
.change_table
)
def change_table(self
):
print(self
.spinBox
.value
())
实例效果图展示: 喜欢的点个赞❤吧!
转载请注明原文地址: https://lol.8miu.com/read-4020.html