def __assign_displays(self): """assigns display name """ self.displays = CDisplay.detect_display_devices() self.no_of_displays = len(self.displays) self.no_of_connected_dev = self.no_of_displays if self.no_of_displays == 1: self.display1 = self.displays[0] elif self.no_of_displays == 2: self.display1 = self.displays[0] self.display2 = self.displays[1]
def __assign_displays(self): """assigns display name """ self.displays = CDisplay.detect_display_devices() self.no_of_displays = len(self.displays) self.no_of_connected_dev = self.no_of_displays if self.no_of_displays is 1: self.display1 = self.displays[0] elif self.no_of_displays is 2: self.display1 = self.displays[0] self.display2 = self.displays[1]
def __assign_displays(self): """assigns display name """ displays = CDisplay.detect_display_devices() no_of_displays = len(displays) self.no_of_connected_dev = no_of_displays if no_of_displays == 1: self.display1 = displays[0] elif no_of_displays == 2: if True: self.display1 = displays[0] self.display2 = displays[1] else: self.display1 = displays[1] self.display2 = displays[0]