def __init__(self, fullscreen, size, beamer_controller): #QtGui.QDialog.__init__(self) QtGui.QWidget.__init__(self) self.fullscreen = fullscreen self.beamer_controller = beamer_controller config = Config() self.screen = config.getBeamerScreen() if fullscreen: self.routeCanvasToSecondaryScreen() else: self.qsize = QtCore.QSize(size[0], size[1]) self.qrect = QtCore.QRect(0, 0, size[0], size[1]) self.setMinimumSize(self.qsize) self.setMaximumSize(self.qsize) self.resize(self.qsize) #self.setStyleSheet("QDialog { background-color: black; }") self.setStyleSheet("QWidget { background-color: black; }") self.layout = QtGui.QGridLayout() self.beam_data = None
def getScreens(self): config = Config() main_screen = config.getProgramScreen() beamer_screen = config.getBeamerScreen() beamer_screen = self.checkForCorrectConfigScreenSettings(beamer_screen) return main_screen, beamer_screen