gamelib.py
def icon(self, path: str) -> None:
        """
        Set the window icon to the image located at `path`.

        Example:
            ```
            gamelib.icon('images/icon.gif')
            ```

        Note:
            The only image formats that are supported accross all platforms (Windows/Mac/Linux)
            are GIF and PPM/PGM/PBM.
        """

        self.send_command_to_tk('icon', path)

        Set the window icon to the image located at `path`.

        Example:
            ```
            gamelib.icon('images/icon.gif')
            ```

        Note:
            The only image formats that are supported accross all platforms (Windows/Mac/Linux)
            are GIF and PPM/PGM/PBM.
        
Set the window icon to the image located at `path`.
Set the window icon to the image located at ` path ` .
def icon(self, path: str) -> None:
        self.send_command_to_tk('icon', path)
def icon ( self , path : str ) -> None : self . send_command_to_tk ( 'icon' , path )
Set the window icon to the image located at `path`.
Set the window icon to the image located at ` path ` .
"""
        Set the window icon to the image located at `path`.

        Example:
            ```
            gamelib.icon('images/icon.gif')
            ```

        Note:
            The only image formats that are supported accross all platforms (Windows/Mac/Linux)
            are GIF and PPM/PGM/PBM.
        """
self
path
str
examples
None