(self, data)
Show a picture.
        @param data raw picture data.
        Note I'm using the XBMC PlaySlideshow command here, giving the pictures path as an argument.
        This is a workaround for the fact that calling the XBMC ShowPicture method more than once seems
        to crash XBMC?
Show a picture.
Show a picture .
def show_picture(self, data):
        """
        Show a picture.
        @param data raw picture data.
        Note I'm using the XBMC PlaySlideshow command here, giving the pictures path as an argument.
        This is a workaround for the fact that calling the XBMC ShowPicture method more than once seems
        to crash XBMC?
        """
        utils.clear_folder(self._TMP_DIR)
        filename = 'picture%d.jpg' % int(time.time())
        path = os.path.join(self._TMP_DIR, filename)
        
        """
        write mode 'b' is needed for Windows compatibility, since we're writing a binary file here.
        """
        f = open(path, 'wb')
        f.write(data)
        f.close()
        
        self._http_api_request('PlaySlideshow(%s)' % self._TMP_DIR)
def show_picture ( self , data ) : utils . clear_folder ( self . _TMP_DIR ) filename = 'picture%d.jpg' % int ( time . time ( ) ) path = os . path . join ( self . _TMP_DIR , filename ) """
        write mode 'b' is needed for Windows compatibility, since we're writing a binary file here.
        """ f = open ( path , 'wb' ) f . write ( data ) f . close ( ) self . _http_api_request ( 'PlaySlideshow(%s)' % self . _TMP_DIR )