def toggle_full_screen(self, *args):
        """
        Toggles Application fullscreen state.

        :param \*args: Arguments.
        :type \*args: \*
        :return: Method success.
        :rtype: bool
        """

        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
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 ( ) 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
Toggles Application fullscreen state.

        :param \*args: Arguments.
        :type \*args: \*
        :return: Method success.
        :rtype: bool