{"id":4383,"date":"2013-06-01T09:14:25","date_gmt":"2013-06-01T09:14:25","guid":{"rendered":"http:\/\/178.62.14.192\/?p=4383"},"modified":"2013-06-01T09:14:25","modified_gmt":"2013-06-01T09:14:25","slug":"learn-python-and-pygame-on-the-raspberrypi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=4383","title":{"rendered":"Learn Python and PyGame on the #RaspberryPi"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/davidbriddock.blogspot.co.uk\/2013\/06\/learn-python-pygame-overview.html?utm_source=feedly&amp;utm_medium=feed&amp;utm_campaign=Feed:+WordsByDavidBriddock+(Words+by+David+Briddock)\"><img src='\/blog\/wp-content\/uploads\/2013\/06\/python-logo1.png' alt='Words by David Briddock: Learn Python - PyGame Overview' \/><\/a><\/p>\n<p>David Briddock continues his excellent long-running <a href=\"http:\/\/davidbriddock.blogspot.co.uk\/p\/learn-python.html\">series on learning Python<\/a> by introducing\u00a0<a style=\"letter-spacing: 0.05em; line-height: 1.6875;\" href=\"http:\/\/davidbriddock.blogspot.co.uk\/2013\/06\/learn-python-pygame-overview.html?utm_source=feedly&amp;utm_medium=feed&amp;utm_campaign=Feed:+WordsByDavidBriddock+(Words+by+David+Briddock)\">PyGame in a broad overview<\/a>.<span style=\"letter-spacing: 0.05em; line-height: 1.6875;\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>David Briddock continues his excellent long-running series on learning Python by introducing\u00a0PyGame in a broad overview.<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[39],"tags":[],"class_list":["post-4383","post","type-post","status-publish","format-standard","hentry","category-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"David Briddock continues his excellent long-running series on learning Python by introducing\u00a0PyGame in a broad overview.Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-01T09:14:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/06\/python-logo1.png\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Learn Python and PyGame on the #RaspberryPi\",\"datePublished\":\"2013-06-01T09:14:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\"},\"wordCount\":24,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=4383#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\",\"name\":\"Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-06-01T09:14:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=4383\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=4383#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn Python and PyGame on the #RaspberryPi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=4383","og_locale":"en_US","og_type":"article","og_title":"Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod","og_description":"David Briddock continues his excellent long-running series on learning Python by introducing\u00a0PyGame in a broad overview.Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=4383","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-06-01T09:14:25+00:00","og_image":[{"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/06\/python-logo1.png","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Learn Python and PyGame on the #RaspberryPi","datePublished":"2013-06-01T09:14:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383"},"wordCount":24,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=4383#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383","url":"https:\/\/www.recantha.co.uk\/blog\/?p=4383","name":"Learn Python and PyGame on the #RaspberryPi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-06-01T09:14:25+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=4383"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4383#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Learn Python and PyGame on the #RaspberryPi"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-18H","jetpack-related-posts":[{"id":6334,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6334","url_meta":{"origin":4383,"position":0},"title":"Create a Sudoku Solver using a #RaspberryPi, Python and Pygame","author":"Michael Horne","date":"7 October 2013","format":false,"excerpt":"Trevor Appleton has written an extensive post (and I mean\u00a0extensive) about this programming problem. Very well worth reading if you're a newcomer to Python, Pygame and Tkinter (for creating GUIs). Read the tutorial here","rel":"","context":"In &quot;Games&quot;","block_context":{"text":"Games","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=21"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3179,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3179","url_meta":{"origin":4383,"position":1},"title":"Another Conway&#8217;s Game of Life &#8211; this time with PyGame","author":"Michael Horne","date":"25 March 2013","format":false,"excerpt":"Coronax has blogged about his 'beginners' experiment with Python and the PyGame library. He's managed to get a working example of Conway's Game of Life running on his Raspberry Pi.\u00a0Read more here","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2598,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=2598","url_meta":{"origin":4383,"position":2},"title":"Make Noughts and Crosses for #RaspberryPi with Python and PyGame","author":"Michael Horne","date":"2 March 2013","format":false,"excerpt":"Liam Fraser at Linux User and Developer has written an article about \u00a0making a noughts and crosses game for the Raspberry Pi.","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7506,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=7506","url_meta":{"origin":4383,"position":3},"title":"Creating a photobooth with the #RaspberryPi camera and the Python API","author":"Michael Horne","date":"18 January 2014","format":false,"excerpt":"Following on from Dave Jones' excellent work on the Pi camera Python library, David Whale's Raspberry Pi Saturday Club decided to use it to create a photobooth. They combined it with PyGame to do some text overlays and soon had the experiment up-and-running. Really great work - it's lovely to\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.whaleygeek.co.uk\/wp-content\/uploads\/2014\/01\/2014-01-18-20.26.28.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.whaleygeek.co.uk\/wp-content\/uploads\/2014\/01\/2014-01-18-20.26.28.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/blog.whaleygeek.co.uk\/wp-content\/uploads\/2014\/01\/2014-01-18-20.26.28.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":12733,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=12733","url_meta":{"origin":4383,"position":4},"title":"Create images for the Raspberry Pi AstroPi HAT","author":"Michael Horne","date":"10 June 2015","format":false,"excerpt":"Richard Hayler and his Code Club\u00a0are currently experimenting with the AstroPi board\u00a0and were fascinated by the way you can display scrolling text and images on the 8x8 matrix display. Richard has created a little Python\/Pygame app that will allow you to create an 8x8 image and then export it as\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-52L6XCz574U\/VXS32dVSJUI\/AAAAAAAAEWE\/CZT2-UCyxqk\/s320\/draw.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":9427,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=9427","url_meta":{"origin":4383,"position":5},"title":"Write a &#8216;pong&#8217; game using Python on the #RaspberryPi","author":"Michael Horne","date":"23 April 2014","format":false,"excerpt":"Trevor Appleton has done a great work-through and tutorial on creating the game of Pong using pygame and Python. He literally goes through it line-by-line explaining things. As he points out, Pong may seem a simple game but it has so many aspects to it such as control, movement, collision\u2026","rel":"","context":"In &quot;Games&quot;","block_context":{"text":"Games","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=21"},"img":{"alt_text":"","src":"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/f8\/Pong.png","width":350,"height":200,"srcset":"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/f8\/Pong.png 1x, http:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/f8\/Pong.png 1.5x, http:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/f8\/Pong.png 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4383"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4383\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}