{"id":6075,"date":"2021-09-23T15:21:09","date_gmt":"2021-09-23T13:21:09","guid":{"rendered":"https:\/\/www.sviluppomania.com\/it\/?p=6075"},"modified":"2022-06-26T17:45:18","modified_gmt":"2022-06-26T15:45:18","slug":"interfacce-grafiche-con-tkinter-di-python","status":"publish","type":"post","link":"https:\/\/www.sviluppomania.com\/en\/graphical-interfaces-with-pythons-tkinter\/","title":{"rendered":"Graphical interfaces with Python&#8217;s Tkinter"},"content":{"rendered":"<p>In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it. The Tkinter library is used for the creation of cross-platform GUI (Graphical User Interface), which we find already included in the installed Python distribution, even if it is a not very modern technology it still remains very popular among developers being one of the most used in the world, particularly suitable for those small projects that do not require large actions. Among the various advantages that it boasts it is possible to highlight its extreme simplicity of use, while still providing professional graphic interfaces with a high number of widgets at its disposal. As previously mentioned Tkinter is a multiplatform library that allows you to create applications for the various operating systems in use such as Windows, Linux and Mac, a task that is not always possible with other graphic toolkits. Note that the interfaces created with Tkinter even if they provide good looking widgets have a slightly different style from the styles of the environments they run on, even if they are very similar to them.<br \/>\nThere are two ways to create layouts in Tkinter:<\/p>\n<ul>\n<li>Writing code manually, using any text editor such as pycharm, Atom, Visual studio code and many others ;<\/li>\n<li>Using a cross-platform graphics editor called page based on a drag-and-drop system .<\/li>\n<\/ul>\n<p>Let&#8217;s now look at some small examples:<\/p>\n<p><code>import Tkinter as tk \"\"\"I import the library for the Python 3 version\"\"\"<br \/>\n<\/code><br \/>\nWith the code written above the Tkinter library was imported into the project, from this moment all its tools are made available. You have been given an alias to the name to speed up code writing. Note that the version for Python 3 differs from the version for Python 2 by the name of the library, which is Tkinter for version 3 and Tkinter for version 2, this detail points out that the two versions are not compatible with each other.<\/p>\n<p><code>import Tkinter as tk \"\"\"I import the library for the Python 2 version\"\"\"<br \/>\n<\/code><br \/>\nIn this way, Tkinter is imported into the Python 2 version. If we want to make a program that works in both circumstances we have to write the following code:<br \/>\n<code>from sys import version_info<br \/>\nif version_info.major == 2:<br \/>\n\"\"\"We use version 2\"\"\"<br \/>\nimport Tkinter as tk<br \/>\nelif version_info.major == 3:<br \/>\n\"\"\"We use version 3\"\"\"<br \/>\nimport Tkinter as tk<br \/>\n<\/code><br \/>\nLet&#8217;s see now how to create a simple window.<\/p>\n<p><code>import Tkinter as tk \"\"\"I import the library\"\"\"<br \/>\nwindow=tk.Tk() \"\"\"I instantiate the window\"\"\"<br \/>\nwindow.geometry(\"600x400+800+300\") \"\"\"I define size and position\"\"\"<br \/>\nwindow.title(\"My window\") \"\"\"I define the title of the window\"\"\"<br \/>\nwindow.mainloop() \"\"\"I create the window\"\"\"<br \/>\n<\/code><br \/>\nIn figure 1 the result of the previous listing.<\/p>\n<figure id=\"attachment_6085\" aria-describedby=\"caption-attachment-6085\" style=\"width: 320px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png\"><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=75&resize=75&ssl=1 75w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=100&resize=100&ssl=1 100w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=150&resize=150&ssl=1 150w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=240&resize=240&ssl=1 240w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=320&resize=320&ssl=1 320w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=500&resize=500&ssl=1 500w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=640&resize=640&ssl=1 640w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=800&resize=800&ssl=1 800w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=1024&resize=1024&ssl=1 1024w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=1280&resize=1280&ssl=1 1280w, https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1&w=1600&resize=1600&ssl=1 1600w\" class=\"wp-image-6085 size-medium\" fifu-data-src=\"https:\/\/i0.wp.com\/i.ibb.co\/bmM5vp2\/tkinter-Finestra.png?ssl=1\" alt=\"Finestra\" width=\"320\" height=\"232\" \/><\/a><figcaption id=\"caption-attachment-6085\" class=\"wp-caption-text\">Figure 1. Example of a window created with Tkinter<\/figcaption><\/figure>\n<p>Now we can insert some element like a label and a button.<\/p>\n<p><code><br \/>\nimport Tkinter as tk \"\"\"I import the library\"\"\"<br \/>\nwindow=tk.Tk() \"\"\"I instantiate the window\"\"\"<br \/>\nwindow.geometry(\"600x400+800+300\") \"\"\"I define size and position\"\"\"<br \/>\nwindow.title(\"My window\") \"\"\"I define the title of the window\"\"\"<br \/>\n\"\"\"I create a label\"\"\"<br \/>\ntext = tk.Label(text=\"This is my beautiful text\")<br \/>\n\"\"\"I create a button\"\"\"<br \/>\nbottone = tk.Button(text=\"start\")<br \/>\n\"\"\"places them in the container\"\"\"<br \/>\ntext.pack()<br \/>\nbottone.pack()<br \/>\nwindow.mainloop() \"\"\"I create the window\"\"\"<br \/>\n<\/code><\/p>\n<p>In the code a Label element and a Button element have been installed, inserted in the window container through the pack () action which is one of the three methods of Tkinter to position the elements in the layout. In the following figure you can see the result. It should be noted that at the moment neither spaces, nor dimensions, nor styles have been applied to the widgets used, we will see later in the following articles how to do this.<\/p>\n<figure id=\"attachment_6108\" aria-describedby=\"caption-attachment-6108\" style=\"width: 320px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png\"><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=75&resize=75&ssl=1 75w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=100&resize=100&ssl=1 100w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=150&resize=150&ssl=1 150w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=240&resize=240&ssl=1 240w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=320&resize=320&ssl=1 320w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=500&resize=500&ssl=1 500w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=640&resize=640&ssl=1 640w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=800&resize=800&ssl=1 800w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=1024&resize=1024&ssl=1 1024w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=1280&resize=1280&ssl=1 1280w, https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1&w=1600&resize=1600&ssl=1 1600w\" class=\"wp-image-6108 size-medium\" fifu-data-src=\"https:\/\/i1.wp.com\/i.ibb.co\/N6Jq1nJ\/finestra-Con-Widget.png?ssl=1\" alt=\"FinestraWidget\" width=\"320\" height=\"222\" \/><\/a><figcaption id=\"caption-attachment-6108\" class=\"wp-caption-text\">Figure 2. Example with Label and Button<\/figcaption><\/figure>\n<p>As mentioned above there are three methods of layout management, which are pack, grid, and place.<\/p>\n<p><strong>Pack:<\/strong> Allows you to place widgets on vertical or horizontal lines in relation to each other.<\/p>\n<p><strong>Grid:<\/strong> The widgets are placed in a grid, the position is determined by the row and column number entered.<\/p>\n<p><strong>Place:<\/strong> The various elements are arranged through the position of two dimensions with absolute coordinates x and y.<\/p>\n<p>Before closing we make a little mention of Ttk, which is an extension of the Tkinter library with the use of new aesthetically improved widgets, giving a more pleasant appearance on all platforms in use. However, the replacement widgets are not fully compatible. The main difference is that some options are no longer present in Ttk widgets.<\/p>\n<p>In the next articles we will deepen &#8220;how a graphical interface is built&#8221; by expanding in more detail the various topics mentioned on this page.<\/p>\n<p>&nbsp;<\/p>\n<p>SviluppoMania<br \/>\nStayTuned<\/p>","protected":false},"excerpt":{"rendered":"<p>In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language&#8230;<\/p>\n","protected":false},"author":174,"featured_media":7149,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png","fifu_image_alt":"Logo Py","_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[298],"tags":[539,540],"class_list":["post-6075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming_languages","tag-python","tag-tkinter"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Graphical interfaces with Python&#039;s Tkinter<\/title>\n<meta name=\"description\" content=\"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.\" \/>\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.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Graphical interfaces with Python&#039;s Tkinter\" \/>\n<meta property=\"og:description\" content=\"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/\" \/>\n<meta property=\"og:site_name\" content=\"SviluppoMania | Professional blog dedicated to Technology!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SviluppoManiaCom\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-23T13:21:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-26T15:45:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png\" \/><meta property=\"og:image\" content=\"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"MARCO.VERGNANI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png\" \/>\n<meta name=\"twitter:creator\" content=\"@SviluppoMania\" \/>\n<meta name=\"twitter:site\" content=\"@SviluppoMania\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"MARCO.VERGNANI\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/\"},\"author\":{\"name\":\"MARCO.VERGNANI\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/#\\\/schema\\\/person\\\/74059ad6ddf5816e74a6bf7cd8ffcb44\"},\"headline\":\"Graphical interfaces with Python&#8217;s Tkinter\",\"datePublished\":\"2021-09-23T13:21:09+00:00\",\"dateModified\":\"2022-06-26T15:45:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/\"},\"wordCount\":1281,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i2.wp.com\\\/i.ibb.co\\\/wpgtPhc\\\/logoPy.png?w=850&resize=850,340&ssl=1\",\"keywords\":[\"Python\",\"Tkinter\"],\"articleSection\":[\"PROGRAMMING &amp; LANGUAGES\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/\",\"url\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/\",\"name\":\"Graphical interfaces with Python's Tkinter\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/interfacce-grafiche-con-tkinter-di-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i2.wp.com\\\/i.ibb.co\\\/wpgtPhc\\\/logoPy.png?w=850&resize=850,340&ssl=1\",\"datePublished\":\"2021-09-23T13:21:09+00:00\",\"dateModified\":\"2022-06-26T15:45:18+00:00\",\"description\":\"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i2.wp.com\\\/i.ibb.co\\\/wpgtPhc\\\/logoPy.png?w=850&resize=850,340&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i2.wp.com\\\/i.ibb.co\\\/wpgtPhc\\\/logoPy.png?w=850&resize=850,340&ssl=1\",\"width\":850,\"height\":340,\"caption\":\"Logo Py\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/interfacce-grafiche-con-tkinter-di-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interfacce grafiche con Tkinter di Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/\",\"name\":\"SviluppoMania | Professional blog dedicated to Technology!\",\"description\":\"SviluppoMania | Professional blog dedicated to Technology! Tools - Reviews and much more\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#organization\",\"name\":\"SviluppoMania.com\",\"url\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sviluppomania.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/SviluppoMania-logo2-_1_.webp\",\"contentUrl\":\"https:\\\/\\\/www.sviluppomania.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/SviluppoMania-logo2-_1_.webp\",\"width\":474,\"height\":408,\"caption\":\"SviluppoMania.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/SviluppoManiaCom\",\"https:\\\/\\\/x.com\\\/SviluppoMania\",\"https:\\\/\\\/www.instagram.com\\\/sviluppomania\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC5CuM88LjzBeC23s2DPdveA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sviluppomania.com\\\/it\\\/#\\\/schema\\\/person\\\/74059ad6ddf5816e74a6bf7cd8ffcb44\",\"name\":\"MARCO.VERGNANI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50\",\"url\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50\",\"contentUrl\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50\",\"caption\":\"MARCO.VERGNANI\"},\"description\":\"Nella mia vita a 12 anni e' entrato a far parte un Intel 80286 con 4MB di RAM, un Hard disk da 20 MB e una primissima scheda VGA appena uscita e da allora mi si e' aperto un mondo pieno di bit. Appassionato di programmazione fin da piccolo, mi diverto a costruire piccoli robottini. Curioso delle molteplici applicazioni che le macchine automatiche possono compiere, e adoro vedere volare quegli strani oggetti chiamati droni.\",\"url\":\"https:\\\/\\\/www.sviluppomania.com\\\/en\\\/author\\\/marco-vergnani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Graphical interfaces with Python's Tkinter","description":"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.","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.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/","og_locale":"en_US","og_type":"article","og_title":"Graphical interfaces with Python's Tkinter","og_description":"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.","og_url":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/","og_site_name":"SviluppoMania | Professional blog dedicated to Technology!","article_publisher":"https:\/\/www.facebook.com\/SviluppoManiaCom","article_published_time":"2021-09-23T13:21:09+00:00","article_modified_time":"2022-06-26T15:45:18+00:00","og_image":[{"url":"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png","type":"","width":"","height":""},{"url":"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png","width":960,"height":1440,"type":"image\/jpeg"}],"author":"MARCO.VERGNANI","twitter_card":"summary_large_image","twitter_image":"https:\/\/i.ibb.co\/wpgtPhc\/logoPy.png","twitter_creator":"@SviluppoMania","twitter_site":"@SviluppoMania","twitter_misc":{"Written by":"MARCO.VERGNANI","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/#article","isPartOf":{"@id":"https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/"},"author":{"name":"MARCO.VERGNANI","@id":"https:\/\/www.sviluppomania.com\/it\/#\/schema\/person\/74059ad6ddf5816e74a6bf7cd8ffcb44"},"headline":"Graphical interfaces with Python&#8217;s Tkinter","datePublished":"2021-09-23T13:21:09+00:00","dateModified":"2022-06-26T15:45:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/"},"wordCount":1281,"commentCount":0,"publisher":{"@id":"https:\/\/www.sviluppomania.com\/it\/#organization"},"image":{"@id":"https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/#primaryimage"},"thumbnailUrl":"https:\/\/i2.wp.com\/i.ibb.co\/wpgtPhc\/logoPy.png?w=850&resize=850,340&ssl=1","keywords":["Python","Tkinter"],"articleSection":["PROGRAMMING &amp; LANGUAGES"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/","url":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/","name":"Graphical interfaces with Python's Tkinter","isPartOf":{"@id":"https:\/\/www.sviluppomania.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/#primaryimage"},"image":{"@id":"https:\/\/www.sviluppomania.com\/it\/interfacce-grafiche-con-tkinter-di-python\/#primaryimage"},"thumbnailUrl":"https:\/\/i2.wp.com\/i.ibb.co\/wpgtPhc\/logoPy.png?w=850&resize=850,340&ssl=1","datePublished":"2021-09-23T13:21:09+00:00","dateModified":"2022-06-26T15:45:18+00:00","description":"In this article we will talk about the Tkinter toolkit which is simply a link for the Python programming language to the Tk graphics library allowing you to use all the tools made available by it.","breadcrumb":{"@id":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/#primaryimage","url":"https:\/\/i2.wp.com\/i.ibb.co\/wpgtPhc\/logoPy.png?w=850&resize=850,340&ssl=1","contentUrl":"https:\/\/i2.wp.com\/i.ibb.co\/wpgtPhc\/logoPy.png?w=850&resize=850,340&ssl=1","width":850,"height":340,"caption":"Logo Py"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sviluppomania.com\/en\/interfacce-grafiche-con-tkinter-di-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sviluppomania.com\/en\/"},{"@type":"ListItem","position":2,"name":"Interfacce grafiche con Tkinter di Python"}]},{"@type":"WebSite","@id":"https:\/\/www.sviluppomania.com\/en\/#website","url":"https:\/\/www.sviluppomania.com\/en\/","name":"SviluppoMania | Professional blog dedicated to Technology!","description":"SviluppoMania | Professional blog dedicated to Technology! Tools - Reviews and much more","publisher":{"@id":"https:\/\/www.sviluppomania.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sviluppomania.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.sviluppomania.com\/en\/#organization","name":"SviluppoMania.com","url":"https:\/\/www.sviluppomania.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sviluppomania.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.sviluppomania.com\/wp-content\/uploads\/2020\/12\/SviluppoMania-logo2-_1_.webp","contentUrl":"https:\/\/www.sviluppomania.com\/wp-content\/uploads\/2020\/12\/SviluppoMania-logo2-_1_.webp","width":474,"height":408,"caption":"SviluppoMania.com"},"image":{"@id":"https:\/\/www.sviluppomania.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SviluppoManiaCom","https:\/\/x.com\/SviluppoMania","https:\/\/www.instagram.com\/sviluppomania\/","https:\/\/www.youtube.com\/channel\/UC5CuM88LjzBeC23s2DPdveA"]},{"@type":"Person","@id":"https:\/\/www.sviluppomania.com\/it\/#\/schema\/person\/74059ad6ddf5816e74a6bf7cd8ffcb44","name":"MARCO.VERGNANI","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50","url":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50","contentUrl":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocIrc635RIrznZifq60wpv-NGquftAXU0DTmwwGSdlV4FbvhpkIn=s96-c?sz=50","caption":"MARCO.VERGNANI"},"description":"Nella mia vita a 12 anni e' entrato a far parte un Intel 80286 con 4MB di RAM, un Hard disk da 20 MB e una primissima scheda VGA appena uscita e da allora mi si e' aperto un mondo pieno di bit. Appassionato di programmazione fin da piccolo, mi diverto a costruire piccoli robottini. Curioso delle molteplici applicazioni che le macchine automatiche possono compiere, e adoro vedere volare quegli strani oggetti chiamati droni.","url":"https:\/\/www.sviluppomania.com\/en\/author\/marco-vergnani\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/posts\/6075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/users\/174"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/comments?post=6075"}],"version-history":[{"count":0,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/posts\/6075\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/media\/7149"}],"wp:attachment":[{"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/media?parent=6075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/categories?post=6075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sviluppomania.com\/en\/wp-json\/wp\/v2\/tags?post=6075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}