def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # self.addMiddleWidget("逐步添加用户", StepAddWidget(self)) # self.addMiddleWidget("线性递增添加用户", LinerAddWidget(self)) self.addMiddleWidget("载入用户", ThreadStepAddWidget(self)) self.classRoom = ClassRoom.singleton() self.flag = False
def __init__(self, vote): super().__init__() self.classRoom = ClassRoom.singleton() for voteOption in vote["voteOptionList"]: setattr( self, voteOption["optionName"], ButtonSpinBoxField(self, voteOption["optionName"], lambda v, x=voteOption: self.vote(x)))
def __init__(self): super().__init__() self.flag = True self.temp_func = None self.classRoom = ClassRoom.singleton() self.worker = None self.initialize() self.setStyle() self.setConfig() self.setLayouts() self.setExecut()
def __init__(self): super().__init__() self.classRoom = ClassRoom.singleton() self.timer = QTimer(self) self.timer.timeout.connect(self.update_inroom_robot_label) self.timer.start(2000)
def __init__(self, parent): super().__init__() self.timer = QTimer(self) self.parent = parent self.timer.timeout.connect(self.add_user) self.classRoom = ClassRoom.singleton()
def __init__(self, parent): super().__init__() self.parent = parent self.worker = WorkThread(self.parent) self.classRoom = ClassRoom.singleton()
def __init__(self): super().__init__() self.classRoom = ClassRoom.singleton()