code: def toggle_full_screen(self, *args):
          
  
          LOGGER.debug("> Toggling FullScreen state.")
  
          if self.is_full_screen():
              self.setUnifiedTitleAndToolBarOnMac(True)
              self.set_visual_style(full_screen_style=False)
              self.showNormal()
              # TODO: Remove hack that ensure toolBar is repainted.
              platform.system() == "Darwin" and self.resize(self.size().width() + 1, self.size().height() + 1)
          else:
              self.setUnifiedTitleAndToolBarOnMac(False)
              self.set_visual_style(full_screen_style=True)
              self.showFullScreen()
          return True
docs: Toggles Application fullscreen state.
  
          :param \*args: Arguments.
          :type \*args: \*
          :return: Method success.
          :rtype: bool