{"id":214,"date":"2019-08-09T20:35:41","date_gmt":"2019-08-09T20:35:41","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=214"},"modified":"2019-08-09T20:40:29","modified_gmt":"2019-08-09T20:40:29","slug":"python-blocks-example-code","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/python-blocks-example-code\/","title":{"rendered":"Python Blocks Example Code"},"content":{"rendered":"\n<p>Below are a few pre-written examples of Python code.  These are all commented so that you can learn what is going on and modify for your requirements.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Instructions<\/strong><\/h2>\n\n\n\n<p><strong>Right click<\/strong> on the file you want to download and select <strong>&#8220;Save link as&#8221;<\/strong> from the menu system.  When downloaded to your computer simply navigate to <a href=\"https:\/\/www.computerscienced.co.uk\/pythonblocks\/update\/\">Python Blocks<\/a> and click on the <strong>&#8220;Choose File&#8221;<\/strong> icon and select the file from your hard drive to load the example into Python Blocks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Menu System Example using functions<\/strong><\/h2>\n\n\n\n<p>This is the menu example <strong>right click on it to save<\/strong> &#8211; <a href=\"https:\/\/www.computerscienced.co.uk\/pythonblocks\/examples\/Python%20Blocks%20Menu%20Example.xml\">Python Blocks Menu Example.xml<\/a><\/p>\n\n\n\n<p>A basic menu system written using functions.  You can see how this was written on the Knowledge Base here &#8211;  <a href=\"https:\/\/computerscienced.co.uk\/site\/knowledge-base\/how-do-i-make-a-menu-system-in-python-blocks\/\">https:\/\/computerscienced.co.uk\/site\/knowledge-base\/how-do-i-make-a-menu-system-in-python-blocks\/<\/a> <\/p>\n\n\n\n<p>and here &#8211;  <a href=\"https:\/\/computerscienced.co.uk\/site\/knowledge-base\/how-do-i-use-functions-in-a-menu-system\/\">https:\/\/computerscienced.co.uk\/site\/knowledge-base\/how-do-i-use-functions-in-a-menu-system\/<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below are a few pre-written examples of Python code. These are all commented so that you can learn what is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":false,"footnotes":""},"class_list":["post-214","page","type-page","status-publish","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":"","full":""},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":2,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/214\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/214\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}