what happens if i post packt lesosns on github code example

Example 1: what to do in python when you get pygame.Surface object is not callable

screen.blit(playerImg, (x, y))
you need to remeber the commas

Example 2: how to do auto download when you click on a link

<a href="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" download>download file</a>
var a = document.createElement('a');
a.href = "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png";
a.download = 'download';

a.click();

Tags:

Html Example