def scrollbarColourScroll(self, widget): ## Reads all the colour settings and sets them. if (player.playingVideo()): # Set it if a video is playing. player.setBrightness(cfg.getFloat("video/brightness")) player.setContrast(cfg.getFloat("video/contrast")) player.setHue(cfg.getFloat("video/hue")) player.setSaturation(cfg.getFloat("video/saturation"))
def toggleForceAspect(self, widget): ## Sets force aspect ratio to if it's set or not. if (player.playingVideo()): player.setForceAspectRatio(cfg.getBool("video/force-aspect-ratio")) self.main.videoWindowConfigure(self.main.videoWindow)