{"id":1247,"date":"2020-11-26T00:08:58","date_gmt":"2020-11-26T00:08:58","guid":{"rendered":"https:\/\/www.pythontutorial.net\/?page_id=1247"},"modified":"2025-04-03T08:47:08","modified_gmt":"2025-04-03T08:47:08","slug":"tkinter-label","status":"publish","type":"page","link":"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-label\/","title":{"rendered":"Tkinter Label"},"content":{"rendered":"\r\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn about the Tkinter <code>Label<\/code> widget and how to use it to display a text or image on the screen.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id='introduction-to-tkinter-label-widget'>Introduction to Tkinter Label widget <a href=\"#introduction-to-tkinter-label-widget\" class=\"anchor\" id=\"introduction-to-tkinter-label-widget\" title=\"Anchor for Introduction to Tkinter Label widget\">#<\/a><\/h2>\r\n\r\n\r\n\r\n<p>Tkinter <code>Label<\/code> widget displays a text or image on a window. To create a <code>Label<\/code> widget, you follow these steps:<\/p>\r\n\r\n\r\n\r\n<p>First, import <code>ttk<\/code> module from <code>tkinter<\/code>:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">from<\/span> tkinter <span class=\"hljs-keyword\">import<\/span> ttk<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Second, create a <code>Label<\/code> widget using the <code>Label<\/code> constructor:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">label = ttk.Label(master, **kw)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The <code>Label<\/code> widget has many options that allow you to customize its appearance.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id='displaying-a-text-label'>Displaying a text label <a href=\"#displaying-a-text-label\" class=\"anchor\" id=\"displaying-a-text-label\" title=\"Anchor for Displaying a text label\">#<\/a><\/h2>\r\n\r\n\r\n\r\n<p>The following program shows how to display a text label on the main window:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> tkinter <span class=\"hljs-keyword\">as<\/span> tk\r\n<span class=\"hljs-keyword\">from<\/span> tkinter <span class=\"hljs-keyword\">import<\/span> ttk\r\n\r\n<span class=\"hljs-comment\"># Main window<\/span>\r\nroot = tk.Tk()\r\nroot.geometry(<span class=\"hljs-string\">'300x200'<\/span>)\r\nroot.title(<span class=\"hljs-string\">'Label Widget Demo'<\/span>)\r\n\r\n<span class=\"hljs-comment\"># Create a label<\/span>\r\nlabel = ttk.Label(root, text=<span class=\"hljs-string\">'This is a label'<\/span>)\r\nlabel.pack()\r\n\r\nroot.mainloop()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"230\" class=\"wp-image-1248\" src=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/11\/Tkinter-Label-Regular-Label-Widget.png\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p>How it works.<\/p>\r\n\r\n\r\n\r\n<p>First, create a new instance of the <code>Label<\/code> widget:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">label = ttk.Label(root, text=<span class=\"hljs-string\">'This is a label'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Second, place the <code>Label<\/code> on the main window by calling the <code>pack()<\/code> method:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">label<\/span><span class=\"hljs-selector-class\">.pack<\/span>()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>If you don&#8217;t call the pack() function, the program still creates the label but does not show it on the main window.<\/p>\r\n\r\n\r\n\r\n<p>The <code>pack()<\/code> function is one of three geometry managers in Tkinter, including:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-pack\/\">Pack<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-grid\/\">Grid<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-place\/\">Place<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>You&#8217;ll learn about this in detail in the upcoming tutorials.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id='setting-fonts-for-the-label-widget'>Setting fonts for the Label widget <a href=\"#setting-fonts-for-the-label-widget\" class=\"anchor\" id=\"setting-fonts-for-the-label-widget\" title=\"Anchor for Setting fonts for the Label widget\">#<\/a><\/h2>\r\n\r\n\r\n\r\n<p>To set a font for a label, you pass the <code>font<\/code> <a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-keyword-arguments\/\">keyword argument<\/a> to the <code>Label<\/code> constructor like this:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">font = (<span class=\"hljs-string\">'font name'<\/span>, font_size)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The <code>font<\/code> keyword argument is a <a href=\"https:\/\/www.pythontutorial.net\/python-basics\/python-tuples\/\">tuple<\/a> that contains font name and size. For example:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">font=(<span class=\"hljs-string\">\"Helvetica\"<\/span>, <span class=\"hljs-number\">14<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The following program creates a label with the <code>Helvetica<\/code> font and display it on the main window:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> tkinter <span class=\"hljs-keyword\">as<\/span> tk\r\n<span class=\"hljs-keyword\">from<\/span> tkinter <span class=\"hljs-keyword\">import<\/span> ttk\r\n\r\n\r\nroot = tk.Tk()\r\nroot.geometry(<span class=\"hljs-string\">'300x200'<\/span>)\r\nroot.title(<span class=\"hljs-string\">'Label Widget Demo'<\/span>)\r\n\r\nlabel = ttk.Label(\r\n    root,\r\n    text=<span class=\"hljs-string\">'A Label with the Helvetica font'<\/span>,\r\n    font=(<span class=\"hljs-string\">\"Helvetica\"<\/span>, <span class=\"hljs-number\">14<\/span>))\r\n\r\nlabel.pack()\r\n\r\nroot.mainloop()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"230\" class=\"wp-image-1249\" src=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/11\/Tkinter-Label-Label-with-font.png\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id='creating-image-labels'>Creating image labels <a href=\"#creating-image-labels\" class=\"anchor\" id=\"creating-image-labels\" title=\"Anchor for Creating image labels\">#<\/a><\/h2>\r\n\r\n\r\n\r\n<p>To display an image label, you follow these steps:<\/p>\r\n\r\n\r\n\r\n<p>First, create a directory called <code>assets<\/code>, download and copy the following <code>python.png<\/code> file to the <code>assets<\/code> directory:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" class=\"wp-image-7062\" src=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2025\/03\/python.png\" alt=\"\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Second, create a <a href=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-photoimage\/\">PhotoImage<\/a> widget by passing the path of the image to the <code>PhotoImage<\/code> constructor:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">photo = tk.PhotoImage(file=<span class=\"hljs-string\">'.\/assets\/python.png'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Third, assign the <code>PhotoImage<\/code> object to the <code>image<\/code> option of the <code>Label<\/code> widget:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\">Label(..., image=photo)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The following example shows how to use a <code>Label<\/code> widget to display an image:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> tkinter <span class=\"hljs-keyword\">as<\/span> tk\r\n<span class=\"hljs-keyword\">from<\/span> tkinter <span class=\"hljs-keyword\">import<\/span> ttk\r\n\r\n<span class=\"hljs-comment\"># create the main window<\/span>\r\nroot = tk.Tk()\r\nroot.geometry(<span class=\"hljs-string\">'300x200'<\/span>)\r\nroot.resizable(<span class=\"hljs-literal\">False<\/span>, <span class=\"hljs-literal\">False<\/span>)\r\nroot.title(<span class=\"hljs-string\">'Label Widget Image'<\/span>)\r\n\r\n<span class=\"hljs-comment\"># display an image label<\/span>\r\nphoto = tk.PhotoImage(file=<span class=\"hljs-string\">'.\/assets\/python.png'<\/span>)\r\nimage_label = ttk.Label(\r\n    root,\r\n    image=photo,\r\n    padding=<span class=\"hljs-number\">5<\/span>\r\n)\r\nimage_label.pack()\r\n\r\nroot.mainloop()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"230\" class=\"wp-image-1250\" src=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/11\/Tkinter-Label-Label-Image.png\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p class=\"note\">Note that the image file is located at the <code>\/assets\/<\/code> folder.<\/p>\r\n\r\n\r\n\r\n<p>To display both text and image, you&#8217;ll use the <code>text<\/code> attribute and <code>compound<\/code> option.<\/p>\r\n\r\n\r\n\r\n<p>The <code>compound<\/code> option specifies the position of the image relative to the text. Its valid values are:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\">\r\n<table>\r\n<thead>\r\n<tr>\r\n<th>Compound<\/th>\r\n<th>Effect<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td><code>'top'<\/code><\/td>\r\n<td>Display the image above the text.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'bottom'<\/code><\/td>\r\n<td>Display the image below the text.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'left'<\/code><\/td>\r\n<td>Display the image to the left of the text.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'right'<\/code><\/td>\r\n<td>Display the image to the right of the text.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'none'<\/code><\/td>\r\n<td>Display the image if there&#8217;s one; otherwise, display the text. The compound option defaults to <code>'none'<\/code>.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'text'<\/code><\/td>\r\n<td>Display the text, not the image<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><code>'image'<\/code><\/td>\r\n<td>Display the image, not the text.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>The following program shows how to display both text and image on a label:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"Python\" data-shcb-language-slug=\"python\"><span><code class=\"hljs language-python\"><span class=\"hljs-keyword\">import<\/span> tkinter <span class=\"hljs-keyword\">as<\/span> tk\r\n<span class=\"hljs-keyword\">from<\/span> tkinter <span class=\"hljs-keyword\">import<\/span> ttk\r\n\r\n<span class=\"hljs-comment\"># create the root window<\/span>\r\nroot = tk.Tk()\r\nroot.geometry(<span class=\"hljs-string\">'300x200'<\/span>)\r\nroot.title(<span class=\"hljs-string\">'Label Widget Image'<\/span>)\r\n\r\n<span class=\"hljs-comment\"># display an image label<\/span>\r\nphoto = tk.PhotoImage(file=<span class=\"hljs-string\">'.\/assets\/python.png'<\/span>)\r\nimage_label = ttk.Label(\r\n    root,\r\n    image=photo,\r\n    text=<span class=\"hljs-string\">'Python'<\/span>,\r\n    compound=tk.TOP\r\n)\r\nimage_label.pack()\r\n\r\nroot.mainloop()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Python<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">python<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"232\" class=\"wp-image-1448\" src=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/12\/Tkinter-Label-Label-Image-with-text.png\" alt=\"\" srcset=\"https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/12\/Tkinter-Label-Label-Image-with-text.png 302w, https:\/\/www.pythontutorial.net\/wp-content\/uploads\/2020\/12\/Tkinter-Label-Label-Image-with-text-300x230.png 300w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Use the Tkinter Label widget to display text or images.<\/li>\r\n<\/ul>\r\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"1247\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-label\/\"\n\t\t\t\tdata-post-title=\"Tkinter Label\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"1247\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pythontutorial.net\/tkinter\/tkinter-label\/\"\n\t\t\t\tdata-post-title=\"Tkinter Label\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\t\t\t<input type=\"button\" name=\"wth-submit\" class=\"wth-btn wth-btn-submit\" id=\"wth-submit\" \/>\n\t\t\t<input type=\"button\" class=\"wth-btn wth-btn-cancel\" value=\"Cancel\" \/>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn about Tkinter Label widget and how to use it to display a text or image on the screen.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1232,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1247","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/comments?post=1247"}],"version-history":[{"count":5,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1247\/revisions"}],"predecessor-version":[{"id":7438,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1247\/revisions\/7438"}],"up":[{"embeddable":true,"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/pages\/1232"}],"wp:attachment":[{"href":"https:\/\/www.pythontutorial.net\/wp-json\/wp\/v2\/media?parent=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}