checkbox状态变化的处理
self.checkBox_drank.stateChanged.connect(self.checkBox_drank_choose) def checkBox_drank_choose(self): if self.checkBox_drank.isChecked(): with open("c:\\timerXdd\\setupcheckboxDrank.txt", mode='w', encoding='utf-8') as ff: ff.writelines('1') else: with open("c:\\timerXdd\\setupcheckboxDrank.txt", mode='w', encoding='utf-8') as ff: ff.writelines('0')
本文来自博客园,作者:xdd1997
转载请注明:https://www.cnblogs.com/xdd1997/p/13512430.html
![]()