class QuestionFrontend:
def userChoose (self, title, choices, returns, fallback):
raise Exception("The abstract method 'userChoose' has not been implemented by %s"%str(self.__class__))
class QuestionFrontend:
def userChoose (self, title, choices, returns, fallback):
raise Exception("The abstract method 'userChoose' has not been implemented by %s"%str(self.__class__))
def selectResolution(self, displayname, availablemodes):
modedescs = list(map(str, availablemodes))
return self.userChoose("Select resolution for %s"%displayname, modedescs, availablemodes, None)
def selectResolution(self, displayname, availablemodes):
modedescs = list(map(str, availablemodes))
return self.userChoose("Select resolution for %s"%displayname, modedescs, availablemodes, None)
def setup (self, situation):
operationmodes = list(OperationMode)
operationmodedescs = list(map(lambda x: x.text, operationmodes))
def setup (self, situation):
operationmodes = list(OperationMode)
operationmodedescs = list(map(lambda x: x.text, operationmodes))