def openMainWindow(self, *args, **kw): result = ShowBase.openMainWindow(self, *args, **kw) if result: self.wantEnviroDR = not self.win.getGsg().isHardware( ) or config.GetBool('want-background-region', 1) self.backgroundDrawable = self.win return result
def openMainWindow(self, *args, **kw): result = ShowBase.openMainWindow(self, *args, **kw) if result: if not not self.win.getGsg().isHardware(): pass self.wantEnviroDR = config.GetBool('want-background-region', 1) self.backgroundDrawable = self.win return result
def openMainWindow(self, *args, **kw): result = ShowBase.openMainWindow(self, *args, **kw) if result: self.wantEnviroDR = (not self.win.getGsg().isHardware() or ConfigVariableBool( "want-background-region", 1).getValue()) self.backgroundDrawable = self.win pass return result