code: def setFullscreen(self, fullscreen):
          
          if not fullscreen:
              self.ckBox_fullscreen.setChecked(False)
              self.parent().showNormal()
          else:
              self.ckBox_fullscreen.setChecked(True)
              self.parent().showFullScreen()
docs: toggle between fullscreen and normal window