def setupDisplay(self): self.displayInfo = QSystemDisplayInfo() self._displayBrightness = self.displayInfo.displayBrightness(0) self._colorDepth = self.displayInfo.colorDepth(0)
def setupDisplay(self): di = QSystemDisplayInfo() self.brightnessLabel.setText(str(di.displayBrightness(0))) self.colorDepthLabel.setText(str(di.colorDepth((0))))