def getParticipantID(self): pid, ok = QtGui.QInputDialog.getInt(self, "Setup", "Participant ID", minValue=0) if ok: self.ctrl = TestController(participant_id=pid) return ok
def Initialize(self, server, cacheManager, controllerComponentManager): Module.Initialize(self, server, cacheManager, controllerComponentManager) self.AddController(lambda: TestController()) self.AddPacket("ITestPacket", lambda: TestPacket())