This commit is contained in:
恍兮惚兮 2024-06-20 23:35:37 +08:00
parent 281b4f32a9
commit cb64beb810

View File

@ -179,6 +179,9 @@ class closeashidewindow(saveposwindow):
class MySwitch(QWidget): class MySwitch(QWidget):
clicked = pyqtSignal(bool) clicked = pyqtSignal(bool)
def click(self):
self.setChecked(not self.checked)
def sizeHint(self): def sizeHint(self):
return QSize( return QSize(
int(1.62 * globalconfig["buttonsize2"]), globalconfig["buttonsize2"] int(1.62 * globalconfig["buttonsize2"]), globalconfig["buttonsize2"]