- intres = userChoose ("internal display resolution", list(map(res2user,internalResolutions)), internalResolutions, internalResolutions[0])
- extres = userChoose ("external display resolution", list(map(res2user,externalResolutions)), externalResolutions, externalResolutions[0])
- extprim = userChoose ("Which display should be the primary display?", ["internal display", "external display"], [False, True], None)
+ intres = userChoose ("internal display resolution", list(map(str,internalResolutions)), internalResolutions, None)
+ if intres == None:
+ return None
+ else:
+ extprim = True
+ extres = userChoose ("external display resolution", list(map(str,externalResolutions)), externalResolutions, None)
+ if extres == None:
+ return None
+ if extprim == None:
+ extprim = userChoose ("Which display should be the primary display?", ["internal display", "external display"], [False, True], None)