Lv100版本源码上传

This commit is contained in:
西瓜°
2024-11-04 14:45:20 +08:00
parent a98bdaf4e0
commit a6dbccdead
3431 changed files with 139917 additions and 75 deletions
@@ -0,0 +1,24 @@
from PyQt5.QtGui import *
from PublicReference.common import *
class ConfirmButton(QPushButton):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.setEnabled(False)
# self.setText("test")
self.time = QTimer(self)
self.count = 10
self.time.setInterval(1000)
self.time.timeout.connect(self.Refresh)
self.time.start()
def Refresh(self):
# print(self.count)
if self.count > 0:
self.setText("(" + str(self.count) + "s) 确认")
self.count -= 1
else:
self.time.stop()
self.setEnabled(True)
self.setText("确认")