{"id":18888,"date":"2022-09-25T10:45:40","date_gmt":"2022-09-25T05:15:40","guid":{"rendered":"https:\/\/copyassignment.com\/?p=18888"},"modified":"2022-11-30T18:04:49","modified_gmt":"2022-11-30T12:34:49","slug":"file-explorer-in-python-using-tkinter","status":"publish","type":"post","link":"https:\/\/copyassignment.com\/file-explorer-in-python-using-tkinter\/","title":{"rendered":"File Explorer in Python using Tkinter"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Welcome to <a href=\"https:\/\/www.violet-cat-415996.hostingersite.com\">violet-cat-415996.hostingersite.com<\/a>. In this tutorial, we are going to learn File Explorer in Python using the Tkinter module. What is basically a file explorer? A file explorer is nothing but an application that is used to manage certain files and folders on your device where we can open, edit, copy, delete and move the files and folders on the networks or the attached disks. <a href=\"#complete-code\">Click here<\/a> to get the complete source code.<\/p>\n\n\n\n<p>Here we are going to build a GUI-based project File Explorer in Python using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Tkinter\">Tkinter<\/a>, shutil, filedialog, and OS modules and going to understand all the necessary steps one by one to manage the files and folders in the file explorer or file manager.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Steps for creating File Explorer in Python using Tkinter<\/h2>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">1. Importing the Modules<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ebebeb\"><code>from tkinter import *  # import all the widgets\nimport os  #importing the os and shutil module\nimport shutil\nfrom tkinter import messagebox as mb #import the mesassage box for displaying the messages\nfrom tkinter import filedialog as fd  # imports the filedialog  box<\/code><\/pre>\n\n\n\n<p>In this code, we have imported all the necessary modules that are required for the file explorer operations.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Tkinter<\/strong> -The Tkinter module all us to create the GUI window<\/li>\n\n\n\n<li><strong>OS<\/strong> &#8211; The OS module allows us to perform the different operations on the files as well as on its path<\/li>\n\n\n\n<li><strong>Shutil<\/strong> &#8211; The shutil module allows you to move or copy files<\/li>\n<\/ol>\n\n\n\n<p>Here we have imported messagebox as mb and filedialog as fd where the messagebox is used to display various messages on the screen with icons and filedialog module act as a compilation of open and saves the dialog.<\/p>\n\n\n\n<p>There is no need to install these modules separately as they come along with python.<\/p>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">2. Function to open a file <\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ebebeb\"><code># defining the function to open a file\ndef openAFile():\n    # selecting a file using askopenfilename of filedialog as fd\n    files = fd.askopenfilename(\n        title=\"Select a file of any type\",filetypes=&#91;(\"All files\", \"*.*\")]\n    )\n    os.startfile(os.path.abspath(files))<\/code><\/pre>\n\n\n\n<p>In the above code, we have created a function <strong>openAFile()<\/strong> where we have selected a file with the help of the <strong>filedialog\u2019s <\/strong>method <strong>askopenfilename()<\/strong>. We have defines filetypes as \u201c All types\u201d.The <strong>startfile() <\/strong>method<strong> <\/strong>of the <strong>OS<\/strong> modules is used to open the file selected. To normalize the version of the file path <strong>abspath() <\/strong>method is used on the file that is selected.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-95.png\" alt=\"The output of Function to open a file in File Explorer in Python using Tkinter\" class=\"wp-image-18901 lazyload\" width=\"755\" height=\"482\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-95.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-95-300x191.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-95-768x490.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-95-675x431.png 675w\" data-sizes=\"(max-width: 755px) 100vw, 755px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 755px; --smush-placeholder-aspect-ratio: 755\/482;\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">3. Function to copy a file<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code># function to copy a file\ndef copyAFile():\n    # using the filedialog's askopenfilename() method to select the file\n    copythefile = fd.askopenfilename(\n        title=\"Select a file to copy\",filetypes=&#91;(\"All files\", \"*.*\")]\n    )\n    # use the filedialog's askdirectory() method for selecting the directory\n    dirToPaste = fd.askdirectory(title=\"Select the folder to paste the file\")\n    try:\n        shutil.copy(copythefile, dirToPaste)\n        mb.showinfo(title=\"File copied!\",message=\"The file has been copied to the destination.\"\n        )\n    except:\n        mb.showerror(title=\"Error!\",message=\"File is unable to copy.Please try again!\"\n        )<\/code><\/pre>\n\n\n\n<p>In the above code, we have defined a function <strong>copyAFile(). <\/strong>In this function, we are using the <strong>askopenfilename() <\/strong>method of the filedialog module to select the file to be copied. The <strong>askdirectory() <\/strong>method allows us to select the directory where we going to paste the file. In the <strong>try-except<\/strong> block, we are using the copy method of the shutil module to copy the file<strong> <\/strong>to the destination defined. The<strong> showinfo() <\/strong>and <strong>showerror()<\/strong> methods of the <strong>messagebox <\/strong>module are being used to display the messages of \u201cfile copied\u201d and \u201cerror\u201d respectively.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-96.png\" alt=\"Function to copy a file in File Explorer\" class=\"wp-image-18902 lazyload\" width=\"746\" height=\"442\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-96.png 1011w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-96-300x178.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-96-768x456.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-96-675x401.png 675w\" data-sizes=\"(max-width: 746px) 100vw, 746px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 746px; --smush-placeholder-aspect-ratio: 746\/442;\" \/><\/figure>\n<\/div>\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">4. Function to delete a File<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code># function to delete a file\ndef deleteAFile():\n    # selecting the file using the filedialog's askopenfilename() method\n    files = fd.askopenfilename(\n        title=\"Choose a file to delete\",filetypes=&#91;(\"All files\", \"*.*\")]\n    )\n    # delete the file using the remove() method\n    os.remove(os.path.abspath(files))\n    mb.showinfo(title=\"File deleted!\", message=\"The selected file has been deleted.\")<\/code><\/pre>\n\n\n\n<p>In the above code, we are defining a function as<strong>&nbsp;deleteAFile()<\/strong>. In this function, we are using the <strong>askopenfilename()<\/strong> method to select the file to be deleted from the directory. We are using the <strong>remove()<\/strong> method of the OS module to delete a file. The <strong>abspath() <\/strong>method to normalize the file path. The <strong>showinfo()<\/strong> method displays the desired message in File Explorer in Python.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-97.png\" alt=\"Function to delete a File in file explorer Application in Tkinter python\" class=\"wp-image-18903 lazyload\" width=\"762\" height=\"458\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-97.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-97-300x181.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-97-768x462.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-97-675x406.png 675w\" data-sizes=\"(max-width: 762px) 100vw, 762px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 762px; --smush-placeholder-aspect-ratio: 762\/458;\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">5. Function to rename a file<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code># function to rename a file\ndef renameAFile():\n    rename_win = Toplevel(win_root)\n    rename_win.title(\"Rename File\")\n    rename_win.geometry(\"300x100+300+250\")\n    rename_win.resizable(0, 0)\n    rename_win.configure(bg=\"#F6EAD7\")\n\n    # create a lebel\n    rename_label = Label(\n        rename_win,text=\"Enter the file name:\",font=(\"Calibri\", \"8\"),bg=\"white\",fg=\"blue\"\n    )\n    # placing the label on the window\n    rename_label.pack(pady=4)\n    rename_field = Entry(rename_win,width=26,textvariable=fileNameEntered,relief=GROOVE,font=(\"Calibri\", \"10\"),bg=\"white\",fg=\"blue\"\n    )\n    # placing the entry field on the window\n    rename_field.pack(pady=4, padx=4)\n\n    # creating a button\n    submitButton = Button(\n        rename_win,text=\"Submit\",command=NameSubmit,width=14,relief=GROOVE,font=(\"Calibri\", \"9\"),\n    bg=\"white\",fg=\"blue\",activebackground=\"#709218\",activeforeground=\"#FFFFFF\"\n    )\n    submitButton.pack(pady=2)\n\n\n# defining a function get the file path\ndef showFilePath():\n    files = fd.askopenfilename(title=\"Select the file to rename\", filetypes=&#91;(\"All files\", \"*.*\")])\n    return files\n\n\n# defining a function that is called when we click on Submit\ndef NameSubmit():\n    renameName = fileNameEntered.get()\n    # setting the entry field to empty string\n    fileNameEntered.set(\"\")\n    fileName = showFilePath()\n    # creating a new file name for the file\n    newFileName = os.path.join(os.path.dirname(fileName), renameName + os.path.splitext(fileName)&#91;1])\n    os.rename(fileName, newFileName)\n    mb.showinfo(title=\"File Renamed!\", message=\"The selected file has been renamed.\")<\/code><\/pre>\n\n\n\n<p>In the above code, we have defined a function <strong>renameAFile().<\/strong> In this function, we have defined a pop-up window of class Toplevel(). In this pop-up window, we have defined Label(), Entry(), and Button () widgets that allow us to enter a new name for the file that we are going to rename.<\/p>\n\n\n\n<p>Another function<strong> showfilePath()<\/strong> is defined . In this, the <strong>askopenfilename()<\/strong>&nbsp;method is used to store the file path in the variable. &nbsp;We are then returning the files variable.<\/p>\n\n\n\n<p>The next function is <strong>NameSubmit() <\/strong>function defined is used to submit the name of the new file. The renameName variable stores the value of the fileNameEntered object using <strong>get()<\/strong> method. The <strong>set() <\/strong>method sets the value to an empty string. The <strong>os.path.join()<\/strong>&nbsp;method is used to append the directory path with the new file name that is entered along with the extension.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-98.png\" alt=\"Function to rename a file in Python\" class=\"wp-image-18904 lazyload\" width=\"476\" height=\"681\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-98.png 624w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-98-209x300.png 209w\" data-sizes=\"(max-width: 476px) 100vw, 476px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 476px; --smush-placeholder-aspect-ratio: 476\/681;\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-99.png\" alt=\"Function to rename a file\" class=\"wp-image-18905 lazyload\" width=\"723\" height=\"431\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-99.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-99-300x179.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-99-768x458.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-99-675x403.png 675w\" data-sizes=\"(max-width: 723px) 100vw, 723px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 723px; --smush-placeholder-aspect-ratio: 723\/431;\" \/><\/figure>\n<\/div>\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-101.png\" alt=\"success message\" class=\"wp-image-18907 lazyload\" width=\"397\" height=\"214\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-101.png 595w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-101-300x162.png 300w\" data-sizes=\"(max-width: 397px) 100vw, 397px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 397px; --smush-placeholder-aspect-ratio: 397\/214;\" \/><\/figure>\n<\/div>\n\n\n<div style=\"text-align:center\" class=\"wp-block-atomic-blocks-ab-button ab-block-button\"><a href=\"https:\/\/copyassignment.com\/top-100-python-projects-with-source-code\/\" class=\"ab-button ab-button-shape-rounded ab-button-size-medium\" style=\"color:#ffffff;background-color:#3373dc\">Best 100+ Python Projects with source code<\/a><\/div>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">6. Function to open a Folder<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ebebeb\"><code># defining a function to open a folder\ndef openAFolder():\n    # using the filedialog's askdirectory() method to select the folder\n    folder1 = fd.askdirectory(title=\"Select Folder to open\")\n    os.startfile(folder1)<\/code><\/pre>\n\n\n\n<p>Here we have defined the function <strong>openAFolder()<\/strong>. This function uses the <strong>askdirectory()<\/strong> method to select the folder and the <strong>startfile()<\/strong> method of the OS module to open the selected folder.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-102.png\" alt=\"Function to open a Folder in File Explorer in Python Application using Tkinter\" class=\"wp-image-18908 lazyload\" width=\"657\" height=\"390\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-102.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-102-300x178.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-102-768x457.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-102-675x401.png 675w\" data-sizes=\"(max-width: 657px) 100vw, 657px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 657px; --smush-placeholder-aspect-ratio: 657\/390;\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">7. Function to delete a Folder using Python file explorer<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code># defining a function to delete the folder\ndef deleteAFolder():\n    folderToDelete = fd.askdirectory(title='Select Folder to delete')\n    os.rmdir(folderToDelete)\n    mb.showinfo(\"Folder Deleted!\", \"The selected folder has been deleted!\")<\/code><\/pre>\n\n\n\n<p>In the above code the function <strong>deleteAFolder()<\/strong>. In this function, we have used the <strong>askdirectory() <\/strong>method to select the folder. The <strong>rmdir()<\/strong> method of the <strong>OS<\/strong>&nbsp; module is used to remove the folder from the directory. The <strong>showinfo() <\/strong>method is used to display the desired message in File Explorer in Python.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-103.png\" alt=\"Function to delete a Folder in Python\" class=\"wp-image-18910 lazyload\" width=\"714\" height=\"425\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-103.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-103-300x179.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-103-768x458.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-103-675x402.png 675w\" data-sizes=\"(max-width: 714px) 100vw, 714px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 714px; --smush-placeholder-aspect-ratio: 714\/425;\" \/><\/figure>\n<\/div>\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">8. Function to move a folder<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code># defining a function to move the folder\ndef moveAFolder():\n    folderToMove = fd.askdirectory(title='Select the folder you want to move')\n    mb.showinfo(message='Folder has been selected to move. Now, select the desired destination.')\n    des = fd.askdirectory(title='Destination')\n    try:\n        # using the move() method of the shutil module to move the folder to the requested location\n        shutil.move(folderToMove, des)\n        mb.showinfo(\"Folder moved!\", 'The selected folder has been moved to the desired Location')\n    except:\n        mb.showerror('Error!', 'The Folder cannot be moved. Make sure that the destination exists')\n<\/code><\/pre>\n\n\n\n<p>In the above code snippet, we have defined the function <strong>moveAFolder(). In this function,<\/strong> we are using the <strong>askdirectory()<\/strong> method two times. First while selecting the folder from the directory using folderToMove variable and the second time while moving the folder to the destination using the des variable. We are using the <strong>try-except <\/strong>where we are using the <strong>move()<\/strong> method of the <strong>shutil<\/strong> library where we have defined the move method containing the source and destination for moving the folder using python file explorer.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-104.png\" alt=\"Function to move a folder\" class=\"wp-image-18911 lazyload\" width=\"733\" height=\"437\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-104.png 940w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-104-300x179.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-104-768x458.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-104-675x403.png 675w\" data-sizes=\"(max-width: 733px) 100vw, 733px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 733px; --smush-placeholder-aspect-ratio: 733\/437;\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">9. Function for Listing all files in the folder<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code>#list all files in a folder\ndef listFilesInFolder():\n    i = 0 # Intiliazed to 0\n    # using the askdirectory() method to select the folder\n    folder1= fd.askdirectory(title=\"Select the Folder\")\n    files = os.listdir(os.path.abspath(folder1))\n    listFilesWindow = Toplevel(win_root)\n    # specifying the title of the pop-up window\n    listFilesWindow.title(f'Files in {folder1}')\n    listFilesWindow.geometry(\"300x500+300+200\")\n    listFilesWindow.resizable(0, 0)\n    listFilesWindow.configure(bg=\"white\")\n\n    # creating a list box\n    the_listbox = Listbox(\n        listFilesWindow,selectbackground=\"#F24FBF\",font=(\"Calibri\", \"10\"),background=\"white\"\n    )\n    the_listbox.place(relx=0, rely=0, relheight=1, relwidth=1)\n\n    # creating a scroll bar\n    the_scrollbar = Scrollbar(\n        the_listbox,orient=VERTICAL,command=the_listbox.yview\n    )\n    the_scrollbar.pack(side=RIGHT, fill=Y)\n    # setting the yscrollcommand parameter of the listbox's config() method\n    the_listbox.config(yscrollcommand=the_scrollbar.set)\n\n    # iterating through the files in the folder\n    while i &lt; len(files):\n        # using the insert() method to insert the file details in the list box\n        the_listbox.insert(END, \"&#91;\" + str(i + 1) + \"] \" + files&#91;i])\n        i += 1\n    the_listbox.insert(END, \"\")\n    the_listbox.insert(END, \"Total Files: \" + str(len(files)))\n<\/code><\/pre>\n\n\n\n<p>In this code , we have defined the function<strong> listFilesInFolder()<\/strong>. In this function, we have made use of the <strong>listdir()<\/strong> method of the OS module and stored the list of files in the variable files. We have created a pop-up window that shows the listing of all the files in the particular folder for that we have used a <strong>Listbox()<\/strong> widget and the <strong>place() <\/strong>method to place the list on the right side using the <strong>pack() <\/strong>method. The <a href=\"https:\/\/copyassignment.com\/python\/python-while-loop\/\">while loop <\/a>function&nbsp;iterates through each of the files and <strong>insert() <\/strong>method to insert the details of the file.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-105.png\" alt=\"Function for Listing all files in the folder\" class=\"wp-image-18912 lazyload\" width=\"749\" height=\"710\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-105.png 917w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-105-300x285.png 300w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-105-768x729.png 768w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-105-675x640.png 675w\" data-sizes=\"(max-width: 749px) 100vw, 749px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 749px; --smush-placeholder-aspect-ratio: 749\/710;\" \/><\/figure>\n<\/div>\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\">10. Function for creating the main window label and buttons for File explorer in Python<\/h3>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\"><code>if __name__ == \"__main__\":\n    # creating an object of the Tk() class\n    win_root = Tk()\n    win_root.title(\"File Explorer\")\n    win_root.geometry(\"400x600+650+250\")\n    win_root.resizable(0, 0)\n    win_root.configure(bg=\"white\")\n\n    # creating the frames using the Frame()\n    header_frame = Frame(win_root, bg=\"#D8E9E6\")\n    buttons_frame = Frame(win_root, bg=\"skyblue\")\n\n    # using the pack() method to place the frames in the window\n    header_frame.pack(fill=\"both\")\n    buttons_frame.pack(expand=TRUE, fill=\"both\")\n\n    # creating a label using the Label() widget\n    header_label = Label(\n        header_frame,text=\"File Explorer\",font=(\"Calibri\", \"16\"),bg=\"white\",fg=\"blue\"\n    )\n\n    # using the pack() method to place the label in the window\n    header_label.pack(expand=TRUE, fill=\"both\", pady=12)\n\n    # creating open button\n    open_button = Button(\n        buttons_frame,text=\"Open a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"blue\",command=openAFile\n    )\n    # rename button\n    rename_button = Button(\n        buttons_frame,\n        text=\"Rename a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"white\",command=renameAFile\n    )\n\n    # copy button\n    copy_button = Button(\n        buttons_frame,text=\"Copy the File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",\n        relief=GROOVE,activebackground=\"blue\",command=copyAFile\n    )\n\n    # delete button\n    delete_button = Button(\n        buttons_frame,text=\"Delete a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",\n        relief=GROOVE,activebackground=\"white\",command=deleteAFile\n    )\n   # open folder button\n    open_folder_button = Button(\n        buttons_frame,text=\"Open a Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",\n        relief=GROOVE,activebackground=\"blue\",command=openAFolder\n    )\n\n    # delete folder button\n    delete_folder_button = Button(\n        buttons_frame,text=\"Delete Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"blue\",command=deleteAFolder\n    )\n\n    # move folder button\n    move_folder_button = Button(\n        buttons_frame,text=\"Move the Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",relief=GROOVE,\n        activebackground=\"Blue\",command=moveAFolder\n    )\n    # list all files button\n    list_button = Button(\n        buttons_frame,text=\"List files in Folder\", font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",relief=GROOVE,\n        activebackground=\"Blue\",command=listFilesInFolder\n    )\n    # create an object of Stringvar class\n    fileNameEntered = StringVar()\n\n    # use the pack method to place the buttons\n    open_button.pack(pady=9)\n    rename_button.pack(pady=9)\n    copy_button.pack(pady=9)\n    delete_button.pack(pady=9)\n    move_folder_button.pack(pady=9)\n    open_folder_button.pack(pady=9)\n    delete_folder_button.pack(pady=9)\n    list_button.pack(pady=10)\n    win_root.mainloop()<\/code><\/pre>\n\n\n\n<p>In the above code, we have defined the <strong>main()<\/strong> function which consists of the main window of the file explore where we have defined the title, size, and background of the window. We have defined the header frame, header label, and button frame and specified the font, size, foreground, and background color. We have also defined the buttons provided for each of the file explorer operations and specified the desired function using the command attribute for each of the buttons,<\/p>\n\n\n\n<p>We have created the fileNameEntered object of the <strong>StringVar()<\/strong> class and win_root, <strong>mainloop()<\/strong> function to run the application of python file explorer.<\/p>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-106.png\" alt=\"Function for creating the main window label and buttons for File explorer\" class=\"wp-image-18913 lazyload\" width=\"504\" height=\"775\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-106.png 619w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/09\/image-106-195x300.png 195w\" data-sizes=\"(max-width: 504px) 100vw, 504px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 504px; --smush-placeholder-aspect-ratio: 504\/775;\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"complete-code\">Complete Code of File Explorer in Python using Tkinter:<\/h2>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-9886351916045880\" data-ad-slot=\"2002566052\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><div style=\"position:absolute;top:-20px;right:0px;cursor:pointer\" class=\"copy-simple-code-block\"><span class=\"dashicon dashicons dashicons-admin-page\"><\/span><\/div><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"python\" data-theme=\"xcode\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"true\">from tkinter import *  # import all the widgets\nimport os  #importing the os and shutil module\nimport shutil\nfrom tkinter import messagebox as mb #import the mesassage box for displaying the messages\nfrom tkinter import filedialog as fd  # imports the filedialog  box\n\n# defining the function to open a file\ndef openAFile():\n    # selecting a file using askopenfilename of filedialog as fd\n    files = fd.askopenfilename(\n        title=\"Select a file of any type\",filetypes=[(\"All files\", \"*.*\")]\n    )\n    os.startfile(os.path.abspath(files))\n\n\n# function to copy a file\ndef copyAFile():\n    # using the filedialog's askopenfilename() method to select the file\n    copythefile = fd.askopenfilename(\n        title=\"Select a file to copy\",filetypes=[(\"All files\", \"*.*\")]\n    )\n    # use the filedialog's askdirectory() method for selecting the directory\n    dirToPaste = fd.askdirectory(title=\"Select the folder to paste the file\")\n    try:\n        shutil.copy(copythefile, dirToPaste)\n        mb.showinfo(title=\"File copied!\",message=\"The file has been copied to the destination.\"\n        )\n    except:\n        mb.showerror(title=\"Error!\",message=\"File is unable to copy . Please try again!\"\n        )\n\n# function to delete a file\ndef deleteAFile():\n    # selecting the file using the filedialog's askopenfilename() method\n    files = fd.askopenfilename(\n        title=\"Choose a file to delete\",filetypes=[(\"All files\", \"*.*\")]\n    )\n    # delete the file using the remove() method\n    os.remove(os.path.abspath(files))\n    mb.showinfo(title=\"File deleted!\", message=\"The selected file has been deleted.\")\n\n\n# function to rename a file\ndef renameAFile():\n    rename_win = Toplevel(win_root)\n    rename_win.title(\"Rename File\")\n    rename_win.geometry(\"300x100+300+250\")\n    rename_win.resizable(0, 0)\n    rename_win.configure(bg=\"#F6EAD7\")\n\n    # create a lebel\n    rename_label = Label(\n        rename_win,text=\"Enter the file name:\",font=(\"Calibri\", \"8\"),bg=\"white\",fg=\"blue\"\n    )\n    # placing the label on the window\n    rename_label.pack(pady=4)\n    rename_field = Entry(rename_win,width=26,textvariable=fileNameEntered,relief=GROOVE,\n        font=(\"Calibri\", \"10\"),bg=\"white\",fg=\"blue\"\n    )\n    # placing the entry field on the window\n    rename_field.pack(pady=4, padx=4)\n\n    # creating a button\n    submitButton = Button(\n        rename_win,text=\"Submit\",command=NameSubmit,width=14,relief=GROOVE,font=(\"Calibri\", \"9\"),\n        bg=\"white\",fg=\"blue\",activebackground=\"#709218\",activeforeground=\"#FFFFFF\"\n    )\n    submitButton.pack(pady=2)\n\n\n# defining a function get the file path\ndef showFilePath():\n    files = fd.askopenfilename(title=\"Select the file to rename\", filetypes=[(\"All files\", \"*.*\")])\n    return files\n\n\n# defining a function that will be called when submit button is clicked\ndef NameSubmit():\n    renameName = fileNameEntered.get()\n    # setting the entry field to empty string\n    fileNameEntered.set(\"\")\n    fileName = showFilePath()\n    # creating a new file name for the file\n    newFileName = os.path.join(os.path.dirname(fileName), renameName + os.path.splitext(fileName)[1])\n    os.rename(fileName, newFileName)\n    mb.showinfo(title=\"File Renamed!\", message=\"The selected file has been renamed.\")\n\n\n# defining a function to open a folder\ndef openAFolder():\n    # using the filedialog's askdirectory() method to select the folder\n    folder1 = fd.askdirectory(title=\"Select Folder to open\")\n    os.startfile(folder1)\n\n\n# defining a function to delete the folder\ndef deleteAFolder():\n    folderToDelete = fd.askdirectory(title='Select Folder to delete')\n    os.rmdir(folderToDelete)\n    mb.showinfo(\"Folder Deleted!\", \"The selected folder has been deleted!\")\n\n\n# defining a function to move the folder\ndef moveAFolder():\n    folderToMove = fd.askdirectory(title='Select the folder you want to move')\n    mb.showinfo(message='Folder has been selected to move. Now, select the desired destination.')\n    des = fd.askdirectory(title='Destination')\n    try:\n        # using the move() method of the shutil module to move the folder to the requested location\n        shutil.move(folderToMove, des)\n        mb.showinfo(\"Folder moved!\", 'The selected folder has been moved to the desired Location')\n    except:\n        mb.showerror('Error!', 'The Folder cannot be moved. Make sure that the destination exists')\n\n\n#list all files in a folder\ndef listFilesInFolder():\n    i = 0\n    # using the askdirectory() method to select the folder\n    folder1= fd.askdirectory(title=\"Select the Folder\")\n    files = os.listdir(os.path.abspath(folder1))\n    listFilesWindow = Toplevel(win_root)\n    # specifying the title of the pop-up window\n    listFilesWindow.title(f'Files in {folder1}')\n    listFilesWindow.geometry(\"300x500+300+200\")\n    listFilesWindow.resizable(0, 0)\n    listFilesWindow.configure(bg=\"white\")\n\n    # creating a list box\n    the_listbox = Listbox(\n        listFilesWindow,selectbackground=\"#F24FBF\",font=(\"Calibri\", \"10\"),background=\"white\"\n    )\n    the_listbox.place(relx=0, rely=0, relheight=1, relwidth=1)\n\n    # creating a scroll bar\n    the_scrollbar = Scrollbar(\n        the_listbox,orient=VERTICAL,command=the_listbox.yview\n    )\n    the_scrollbar.pack(side=RIGHT, fill=Y)\n    # setting the yscrollcommand parameter of the listbox's config() method\n    the_listbox.config(yscrollcommand=the_scrollbar.set)\n\n    # iterating through the files in the folder\n    while i &lt; len(files):\n        # using the insert() method to insert the file details in the list box\n        the_listbox.insert(END, \"[\" + str(i + 1) + \"] \" + files[i])\n        i += 1\n    the_listbox.insert(END, \"\")\n    the_listbox.insert(END, \"Total Files: \" + str(len(files)))\n\n\nif __name__ == \"__main__\":\n    # creating an object of the Tk() class\n    win_root = Tk()\n    win_root.title(\"File Explorer\")\n    win_root.geometry(\"400x600+650+250\")\n    win_root.resizable(0, 0)\n    win_root.configure(bg=\"white\")\n\n    # creating the frames using the Frame()\n    header_frame = Frame(win_root, bg=\"#D8E9E6\")\n    buttons_frame = Frame(win_root, bg=\"skyblue\")\n\n    # using the pack() method to place the frames in the window\n    header_frame.pack(fill=\"both\")\n    buttons_frame.pack(expand=TRUE, fill=\"both\")\n\n    # creating a label using the Label() widget\n    header_label = Label(\n        header_frame,text=\"File Explorer\",font=(\"Calibri\", \"16\"),bg=\"white\",fg=\"blue\"\n    )\n\n    # using the pack() method to place the label in the window\n    header_label.pack(expand=TRUE, fill=\"both\", pady=12)\n\n    # creating open button\n    open_button = Button(\n        buttons_frame,text=\"Open a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"blue\",command=openAFile\n    )\n    # rename button\n    rename_button = Button(\n        buttons_frame,\n        text=\"Rename a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"white\",command=renameAFile\n    )\n\n    # copy button\n    copy_button = Button(\n        buttons_frame,text=\"Copy the File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",\n        relief=GROOVE,activebackground=\"blue\",command=copyAFile\n    )\n\n    # delete button\n    delete_button = Button(\n        buttons_frame,text=\"Delete a File\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",\n        relief=GROOVE,activebackground=\"white\",command=deleteAFile\n    )\n   # open folder button\n    open_folder_button = Button(\n        buttons_frame,text=\"Open a Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",\n        relief=GROOVE,activebackground=\"blue\",command=openAFolder\n    )\n\n    # delete folder button\n    delete_folder_button = Button(\n        buttons_frame,text=\"Delete Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"blue\",relief=GROOVE,\n        activebackground=\"blue\",command=deleteAFolder\n    )\n\n    # move folder button\n    move_folder_button = Button(\n        buttons_frame,text=\"Move the Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",relief=GROOVE,\n        activebackground=\"Blue\",command=moveAFolder\n    )\n    # list all files button\n    list_button = Button(\n        buttons_frame,text=\"List files in Folder\",font=(\"Calibri\", \"15\"),width=20,bg=\"white\",fg=\"Blue\",relief=GROOVE,\n        activebackground=\"Blue\",command=listFilesInFolder\n    )\n    # create an object of Stringvar class\n    fileNameEntered = StringVar()\n\n    # use the pack method to place the buttons\n    open_button.pack(pady=9)\n    rename_button.pack(pady=9)\n    copy_button.pack(pady=9)\n    delete_button.pack(pady=9)\n    move_folder_button.pack(pady=9)\n    open_folder_button.pack(pady=9)\n    delete_folder_button.pack(pady=9)\n    list_button.pack(pady=10)\n    win_root.mainloop()<\/pre><\/div>\n\n\n\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9886351916045880\"\n     crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"autorelaxed\"\n     data-ad-client=\"ca-pub-9886351916045880\"\n     data-ad-slot=\"7933252109\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p>Hope you find this article helpful. For more articles on python keep visiting our website.<\/p>\n\n\n\n<p>Thank you for reading this article on Python file explorer.<\/p>\n\n\n\n<div style=\"text-align:center\" class=\"wp-block-atomic-blocks-ab-button ab-block-button\"><a href=\"https:\/\/copyassignment.com\/top-100-python-projects-with-source-code\/\" class=\"ab-button ab-button-shape-rounded ab-button-size-medium\" style=\"color:#ffffff;background-color:#3373dc\">Best 100+ Python Projects with source code<\/a><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n<ul class=\"wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/create-your-own-chatgpt-with-python\/\">Create your own ChatGPT with\u00a0Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/sqlite-crud-operations-in-python\/\">SQLite | CRUD Operations in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/event-management-system-project-in-python\/\">Event Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/ticket-booking-and-management-in-python\/\">Ticket Booking and Management in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/hostel-management-system-project-in-python\/\">Hostel Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/sales-management-system-project-in-python\/\">Sales Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/bank-management-system-project-in-cpp\/\">Bank Management System Project in C++<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/python-download-file-from-url-4-methods\/\">Python Download File from URL | 4 Methods<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/python-programming-examples-fundamental-programs-in-python\/\">Python Programming Examples | Fundamental Programs in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/spell-checker-in-python\/\">Spell Checker in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/portfolio-management-system-in-python\/\">Portfolio Management System in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/stickman-game-in-python\/\">Stickman Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/contact-book-project-in-python\/\">Contact Book project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/loan-management-system-project-in-python\/\">Loan Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/cab-booking-system-in-python\/\">Cab Booking System in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/brick-breaker-game-in-python\/\">Brick Breaker Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/tank-game-in-python\/\">Tank game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/gui-piano-in-python\/\">GUI Piano in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/ludo-game-in-python\/\">Ludo Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/rock-paper-scissors-game-in-python\/\">Rock Paper Scissors Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/snake-and-ladder-game-in-python\/\">Snake and Ladder Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/puzzle-game-in-python\/\">Puzzle Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/medical-store-management-system-project-in-python\/\">Medical Store Management System Project in\u00a0Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/creating-dino-game-in-python\/\">Creating Dino Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/tic-tac-toe-game-in-python\/\">Tic Tac Toe Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/test-typing-speed-using-python-app\/\">Test Typing Speed using Python App<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/scientific-calculator-in-python-2\/\">Scientific Calculator in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/gui-to-do-list-app-in-python-tkinter\/\">GUI To-Do List App in Python Tkinter<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/scientific-calculator-in-python\/\">Scientific Calculator in Python using Tkinter<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/gui-chat-application-in-python-tkinter\/\">GUI Chat Application in Python Tkinter<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Introduction Welcome to violet-cat-415996.hostingersite.com. In this tutorial, we are going to learn File Explorer in Python using the Tkinter module. What is basically a file&#8230;<\/p>\n","protected":false},"author":62,"featured_media":18966,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,1061,1403],"tags":[],"class_list":["post-18888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allcategorites","category-gui-python-projects","category-python-projects","wpcat-22-id","wpcat-1061-id","wpcat-1403-id"],"_links":{"self":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/18888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/comments?post=18888"}],"version-history":[{"count":0,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/18888\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media\/18966"}],"wp:attachment":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media?parent=18888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/categories?post=18888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/tags?post=18888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}