{"id":4863,"date":"2013-10-22T05:01:09","date_gmt":"2013-10-21T18:01:09","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4863"},"modified":"2013-10-22T05:01:09","modified_gmt":"2013-10-21T18:01:09","slug":"python-tkinter-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/python-tkinter-primer-tutorial\/","title":{"rendered":"Python Tkinter Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Python Tkinter Primer Tutorial  (try twirling round bottom of image for a synopsis ... 'do the twirl now')\" src=\"http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.jpg\" title=\"Python Tkinter Primer Tutorial\" id='imgptfb' onmouseover=\"var xqw=this.src; if (xqw.indexOf('gif') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.png'; } else if (xqw.indexOf('png') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.jpg'; } else { this.src = 'http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.gif'; }\"   \/><\/a><p class=\"wp-caption-text\">Python Tkinter Primer Tutorial  (try twirling round bottom of image for a synopsis ... 'do the twirl now')<\/p><\/div>\n<p>Have you heard of Python?<\/p>\n<blockquote><p>Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.<\/p><\/blockquote>\n<p>Check <span style=\"color:green;\">&#8730;<\/span><\/p>\n<p>How about Tkinter (the Tcl\/TK GUI interface for Python)?<\/p>\n<blockquote><p>Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit[1] and is Python&#8217;s de facto standard GUI,[2] and is included with the standard Windows and Mac OS X install of Python.<\/p><\/blockquote>\n<p>Check <span style=\"color:green;\">&#8730;<\/span> (we hope)<\/p>\n<p>Have used it for <a target=_blank title='Python Tkinter GUI' href='http:\/\/docs.activestate.com\/activepython\/2.6\/python\/library\/tkinter.html'>Games Programming<\/a> and it is great at <a target=_blank title='Python and the SAX API parsing XML' href='http:\/\/mail.python.org\/pipermail\/python-dev\/2000-October\/009946.html'>parsing XML via the SAX API<\/a>.<\/p>\n<p>Python has some really interesting data structures such as tuples, lists, sets, dictionaries for instance &#8230; read more <a target=_blank title='Python data types' href='http:\/\/zetcode.com\/lang\/python\/datatypes\/'>here<\/a>.<\/p>\n<p>In this primer  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/Python_Tkinter_FileBrowser.jpg'>tutorial<\/a> you can see Tkinter being used by Python to display a file browser dialog, from which you can select a jpeg file to display with the default operating system image application (in our case, on a Mac laptop, this is Preview).<\/p>\n<p>Here is another Python tutorial called <a target=_blank title='Python tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1687'>Python Processing Directory Filespec Primer Tutorial<\/a>.<\/p>\n<p>Useful tutorials helping with this tutorial were<\/p>\n<ul>\n<li><a target=_blank title='Useful tutorial 1' href='https:\/\/wiki.python.org\/moin\/TkInter'>Useful tutorial 1<\/a><\/li>\n<li><a target=_blank title='Useful tutorial 2' href='http:\/\/stackoverflow.com\/questions\/3124556\/clean-way-to-launch-the-web-browser-from-shell-script\/3124634#3124634'>Useful tutorial 2<\/a><\/li>\n<li><a target=_blank title='Useful tutorial 3' href='http:\/\/stackoverflow.com\/questions\/89228\/calling-an-external-command-in-python'>Useful tutorial 3<\/a><\/li>\n<\/ul>\n<p>Link to Python information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Python_%28programming_language%29' title='Python information from Wikipedia'> from Wikipedia<\/a> &#8230; where quote up the top resides.<br \/>\nLink to Tkinter information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Tkinter' title='Tkinter information from Wikipedia'> from Wikipedia<\/a> &#8230; where quote up the top resides.<\/p>\n<p>Link to some Python downloadable programming source code which you could rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Python\/Tkinter\/tkinter_filebrowser_test.py_GETME' title='tkinter_filebrowser_test.py'>tkinter_filebrowser_test.py<\/a><\/p>\n<p>Link to Python website &#8230; <a target=_blank href='http:\/\/www.python.org\/' title='Home of Python'>Home of Python &#8230; where quote up the top resides<\/a><br \/>\nLink to Python jobs done &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Python\/' title='Python example usage'>Python jobs done<\/a> &#8230; personal experience<br \/>\nAnd yes, it&#8217;s true &#8230; the language name is a fond reference to <a target=_blank title='Monty Python' href='http:\/\/www.youtube.com\/watch?v=T70-HTlKRXo'>Monty Python<\/a>\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4863' onclick='var dv=document.getElementById(\"d4863\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Python\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4863' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you heard of Python? Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. Check &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/python-tkinter-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17,29,37],"tags":[549,997,1012,1245,1246,1286,1319],"class_list":["post-4863","post","type-post","status-publish","format-standard","hentry","category-elearning","category-gui","category-operating-system","category-tutorials","tag-gui","tag-programming","tag-python","tag-tcl","tag-tcltk","tag-tkinter","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4863"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4863"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4863\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}