From 27cbfe7bc60957e63a6ba3e0845a9d7215f9e3d8 Mon Sep 17 00:00:00 2001 From: Constantin Berhard Date: Tue, 28 Jul 2015 12:49:02 +0200 Subject: [PATCH 1/1] coding style in question_frontend.py --- question_frontend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/question_frontend.py b/question_frontend.py index 4782ba1..a17b7ca 100644 --- a/question_frontend.py +++ b/question_frontend.py @@ -34,9 +34,11 @@ class OperationMode(Enum): 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 setup (self, situation): operationmodes = list(OperationMode) operationmodedescs = list(map(lambda x: x.text, operationmodes)) -- 2.30.2